/* finesse · register=brand(landing)+product-tables · A=orbit-blue-dark+cyan-lock · B=800/400 CJK sans
 * C=pinned-synced-tour · D=css+io-only · E=market-ledger · SOUL=6 SPECTACLE=4 DENSITY=6 */

/* RoomPrice Monitor design sample (Claude, 2026-10-11), shared by all three pages.
   Keeps the live site's Orbit Blue tokens. Market-position colours follow the program
   (gui.py CALENDAR_STATUS_COLORS): below = cyan, near = blue, above = amber.
   Price movement follows the Email summary: up = amber ▲, down = cyan ▼.
   Purple only ever means "competitor median" (the dotted line in the trend chart). */

:root {
  color-scheme: dark;
  --space: #060a15;
  --void: #0b1224;
  --panel: #131c33;
  --panel-soft: #1c2745;
  --line: rgba(169, 182, 214, .17);
  --line-strong: rgba(169, 182, 214, .34);
  --text: #f2f5ff;
  --muted: #a9b6d6;
  --faint: #8391b6;
  --cyan: #38e1f0;
  --blue: #4c8dff;
  --amber: #ffa24d;
  --rose: #ff7a8f;
  --cheaper: #7aa8ff;
  --ink-on-cyan: #04121a;

  --lo: var(--cyan);
  --lo-soft: rgba(56, 225, 240, .13);
  --mid: var(--blue);
  --mid-soft: rgba(76, 141, 255, .15);
  --hi: var(--amber);
  --hi-soft: rgba(255, 162, 77, .14);
  --na: rgba(169, 182, 214, .5);
  --own-row: #10233a;

  --cyan-hover: #6ae9f4;
  --cyan-ring: rgba(56, 225, 240, .3);
  --mid-text: #8db4ff;
  --bar-bg: rgba(6, 10, 21, .94);
  --shade: rgba(2, 4, 10, .55);
  --edge-light: rgba(242, 245, 255, .05);
  --r-sm: 8px;
  --r: 14px;
  --nav-h: 64px;
  --subnav-h: 60px;
  --z-sticky: 200;
  --z-nav: 300;
  --font: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html:has(.subnav) { scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 16px); }

body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font: 17px/1.75 var(--font);
  font-variant-numeric: tabular-nums;
}

/* Grain: a static noise layer that keeps large dark fields from looking flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
body > .nav { position: sticky; }

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;          /* Chinese headings lose legibility with Latin-style negative tracking */
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
  word-break: keep-all;
}
p, li, dd, figcaption { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 800; line-height: 1.3; }
p { margin: 0; }
a { color: var(--cyan); text-underline-offset: 4px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--cyan);
  color: var(--ink-on-cyan);
  font-weight: 700;
}
.skip:focus { top: 12px; }

.sample-bar { padding: 6px 16px; background: var(--void); color: var(--faint); font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }

.small { color: var(--muted); font-size: 14px; line-height: 1.7; }
.kicker { color: var(--cyan); font-size: 15px; font-weight: 700; }

.tag {
  flex: none;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--void);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-main { background: var(--cyan); color: var(--ink-on-cyan); }
.btn-main:hover { background: var(--cyan-hover); }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- nav ---------- */
.nav {
  top: env(safe-area-inset-top, 0px);
  z-index: var(--z-nav);
  background: var(--bar-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--cyan);
  color: var(--ink-on-cyan);
  font-size: 12px;
  font-weight: 800;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }

/* ---------- hero (index) ---------- */
.hero-band { background: radial-gradient(120% 90% at 70% 0%, transparent 45%, var(--shade)); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 48px);
  padding-block: clamp(44px, 6vw, 80px);
}
.hero h1 { margin: 14px 0 20px; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; line-height: 1.2; }
.hero-copy { max-width: 46em; }
.lede { max-width: 34em; color: var(--muted); font-size: 18px; }
.offer { margin-top: 18px; color: var(--text); font-size: 16.5px; }
.offer strong { color: var(--cyan); }

.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.facts li::before { content: "✓"; margin-right: 6px; color: var(--cyan); font-weight: 800; }

/* market-position month: the same data as the calendar screenshot further down */
.month {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--edge-light), 0 30px 60px -30px var(--shade);
}
.month-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.month-title { font-size: 17px; font-weight: 800; }
.month-sub { color: var(--muted); font-size: 14px; }
.month-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.month-sum b { color: var(--text); }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; }
.dot-lo { background: var(--lo); }
.dot-mid { background: var(--mid); }
.dot-hi { background: var(--hi); }
.dot-na { border: 1.5px dashed var(--na); }

/* month cells carry the program's own lines (app._price_calendar_lines); colours follow
   gui._calendar_line_color: day = text, market label = market colour, everything else muted */
.cal-wd, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-wd { margin-bottom: 6px; }
.cal-wd span { color: var(--faint); font-size: 12.5px; text-align: center; }
.day {
  --c: transparent;
  --c-text: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 9px 10px 10px 14px;
  border-radius: var(--r-sm);
  background: var(--void);
  box-shadow: inset 4px 0 0 var(--c);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.day b { color: var(--text); font-size: 15px; line-height: 1.4; }
.day .pos-text { color: var(--c-text); font-weight: 700; }
.day.lo { --c: var(--lo); --c-text: var(--lo); }
.day.mid { --c: var(--mid); --c-text: var(--mid-text); }
.day.hi { --c: var(--hi); --c-text: var(--hi); }
.day.is-na { background: transparent; border: 1px dashed var(--na); color: var(--faint); }
.day.is-empty { visibility: hidden; }
.wd-m { display: none; font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.month-phone-note { display: none; }
.month figcaption { margin-top: 14px; color: var(--faint); font-size: 13px; line-height: 1.65; }

.pos { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pos.lo { background: var(--lo-soft); color: var(--lo); }
.pos.mid { background: var(--mid-soft); color: var(--mid-text); }
.pos.hi { background: var(--hi-soft); color: var(--hi); }

/* first-load beat: the month's colour bars arrive in date order, once */
@media (prefers-reduced-motion: no-preference) {
  .js .cal .day:not(.is-empty) { animation: settle .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
  @keyframes settle { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------- spec band: real product numbers, no invented stats ---------- */
.specs { border-block: 1px solid var(--line); background: var(--void); }
.specs ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; padding: 0; list-style: none; }
.specs li { padding: 26px 24px; border-left: 1px solid var(--line); }
.specs li:first-child { border-left: 0; padding-left: 0; }
.specs b { display: block; white-space: nowrap; color: var(--text); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; line-height: 1.3; }
.specs span { color: var(--muted); font-size: 14.5px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--void); border-block: 1px solid var(--line); }
.section-head { max-width: 42em; margin-bottom: 40px; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* how it works: a real three-step sequence */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: 20px; border-top: 2px solid var(--line-strong); }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--cyan);
  font-size: 15px;
  font-weight: 800;
}
.steps h3 { margin-bottom: 8px; font-size: 19px; font-weight: 800; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- product tour: the one scroll-synced story (index only) ---------- */
.tour-list { margin: 0; padding: 0; list-style: none; }
.tour-step + .tour-step { margin-top: 64px; }
.tour-copy { max-width: 40em; }
.tour-copy h3 { margin-bottom: 10px; font-size: 21px; font-weight: 800; }
.tour-copy p { color: var(--muted); font-size: 16.5px; }

.ref {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 6px 0 2px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink-on-cyan);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  vertical-align: 2px;
}

.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--cyan); font-weight: 700; }
.text-link::after { content: "↗"; margin-left: 6px; }

.shot {
  position: relative;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--void);
  box-shadow: 0 30px 60px -32px var(--shade);
}
.shot img { width: 100%; }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink-on-cyan);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--cyan-ring), 0 4px 12px var(--shade);
  transform: translate(-115%, -50%);   /* sit beside the target, not on top of its text */
}
.shot-full { display: none; }

.tour-more { margin-top: 28px; }
.film { max-width: 960px; margin: 72px auto 0; text-align: center; }
.film video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; background: var(--void); }
.film p { max-width: 42em; margin: 14px auto 0; color: var(--muted); font-size: 15.5px; }
.demo-label { display: block; margin-top: 4px; color: var(--faint); font-size: 13px; }

@media (min-width: 1000px) {
  #tour .wrap { width: min(1320px, 100% - 40px); }
  .tour-list.is-pinned { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); column-gap: 48px; }
  .is-pinned .tour-step { display: contents; }
  .is-pinned .tour-step + .tour-step { margin-top: 0; }
  .is-pinned .tour-copy {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72vh;
    opacity: .8;
    transition: opacity .3s ease;
  }
  .is-pinned .tour-step.is-active .tour-copy { opacity: 1; }
  .is-pinned .shot {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .is-pinned .tour-step.is-active .shot { opacity: 1; pointer-events: auto; }
}

/* ---------- tables (index excerpt + report page) ---------- */
.sample {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.sample-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sample-title { font-size: 16px; font-weight: 800; }
.swipe { display: none; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.swipe::before { content: "← "; }
.swipe::after { content: " →"; }
.sample.has-scroll .swipe { display: block; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, var(--panel) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--panel) 30%, transparent) right / 40px 100% no-repeat local,
    linear-gradient(90deg, var(--shade), transparent) left / 16px 100% no-repeat scroll,
    linear-gradient(270deg, var(--shade), transparent) right / 16px 100% no-repeat scroll;
}
.table-scroll table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.table-scroll th, .table-scroll td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.table-scroll thead th { border-top: 0; background: var(--panel-soft); color: var(--muted); font-size: 13px; font-weight: 700; }
.table-scroll .l { text-align: left; }
.table-scroll th[scope="row"], .table-scroll thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel);
  text-align: left;
  font-weight: 600;
  box-shadow: 1px 0 0 var(--line);
}
.table-scroll thead th:first-child { background: var(--panel-soft); }
.table-scroll .own th, .table-scroll .own td { background: var(--own-row); font-weight: 800; }
.table-scroll.is-static { background: none; }
.wrapcells th, .wrapcells td { white-space: normal; min-width: 7em; vertical-align: top; line-height: 1.65; }
.wrapcells td:nth-child(3), .wrapcells td:nth-child(4) { min-width: 16em; }
.own-key::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--own-row); vertical-align: -1px; }
.sample-note { margin-top: 6px; }

/* Excel convention (tables depicting the report): red = more expensive than you / up, blue = cheaper / down */
.up, .legend .up { color: var(--rose); }
.dn, .legend .dn { color: var(--cheaper); }
.up::before, .legend .up::before { content: "▲"; margin-right: 4px; font-size: .72em; }
.dn::before, .legend .dn::before { content: "▼"; margin-right: 4px; font-size: .72em; }
td.none { color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ---------- report preview (index) ---------- */
.report { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: start; }
.report-intro > p { margin-top: 14px; color: var(--muted); }
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin-top: 28px; }
.sheets h3 { color: var(--cyan); font-size: 15px; font-weight: 800; }
.sheets ul { margin: 6px 0 0; padding: 0; list-style: none; }
.sheets li { border-bottom: 1px solid var(--line); font-size: 15.5px; }
.sheets a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; }
.sheets a:hover { color: var(--cyan); text-decoration: underline; }

.notify {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.notify img { max-width: min(340px, 100%); border: 1px solid var(--line); border-radius: 12px; }
.notify h3 { margin-bottom: 10px; font-size: 22px; font-weight: 800; }
.notify p { max-width: 32em; color: var(--muted); }
.notify .note { margin-top: 12px; color: var(--faint); font-size: 13.5px; }

/* ---------- limits ---------- */
.limits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.limits-col { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.limits-col h3 { font-size: 18px; font-weight: 800; }
.limits-col ul { margin: 12px 0 0; padding: 0; list-style: none; }
.limits-col li { position: relative; margin: 8px 0; padding-left: 28px; font-size: 16.5px; }
.limits-col li::before { content: "✓"; position: absolute; left: 4px; color: var(--cyan); font-weight: 800; }
.limits-no li::before { content: "✕"; color: var(--faint); }
.limits-col .small { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: inset 0 1px 0 var(--edge-light); }
.plan h3 { color: var(--muted); font-size: 17px; font-weight: 700; }
.price { margin: 6px 0 14px; }
.price strong { font-size: 2.2rem; font-weight: 800; line-height: 1.2; }
.price span { color: var(--muted); font-size: 16px; }
.plan dl { margin: 0; }
.plan dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.plan dt { color: var(--muted); font-size: 15px; }
.plan dd { margin: 0; font-weight: 700; }
.pricing-terms { margin-top: 20px; color: var(--muted); font-size: 15.5px; }
.addons { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.addons summary { display: flex; align-items: center; min-height: 52px; padding: 0 20px; font-weight: 700; cursor: pointer; }
.addons p { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }

/* ---------- free reports / contact (shared) ---------- */
.free { padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--void), var(--space)); }
.free-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.free h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }
.free-lede { margin-top: 12px; color: var(--muted); }
.free-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: free; }
.free-steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; counter-increment: free; }
.free-steps li::before {
  content: counter(free);
  position: absolute;
  left: 0;
  top: 15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}
.free-steps b { display: block; color: var(--text); font-size: 17px; }
.qr {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.qr img { width: 180px; height: 180px; border-radius: 8px; }
.qr span { margin-top: 6px; color: var(--muted); font-size: 14px; }

.payment { padding-block: 0 48px; }
.payment details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.payment summary { display: flex; align-items: center; min-height: 52px; padding: 0 20px; color: var(--muted); font-weight: 700; cursor: pointer; }
.payment-body { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding: 0 20px 20px; }
.payment-note { max-width: 28em; color: var(--text); font-weight: 700; }
.payment-body img { border-radius: 8px; background: var(--text); }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 12px 44px 12px 0;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; color: var(--cyan); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 46em; margin: 0 0 20px; color: var(--muted); }

/* ---------- inner pages (report-demo / gui-demo) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.page-hero h1 { margin: 12px 0 18px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; line-height: 1.25; }
.page-hero .lede { max-width: 38em; }
.page-hero .small { margin-top: 18px; max-width: 46em; }

.subnav {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  z-index: var(--z-sticky);
  background: var(--bar-bg);
  border-block: 1px solid var(--line);
}
.subnav ol {
  display: flex;
  gap: 6px;
  height: var(--subnav-h);
  align-items: center;
  margin: 0 auto;
  padding: 0;
  padding-inline: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { color: var(--text); border-color: var(--line-strong); }
.subnav a:focus-visible, .shot-full:focus-visible { outline-offset: -4px; }
.subnav a.is-here { color: var(--ink-on-cyan); background: var(--cyan); border-color: var(--cyan); }

.sheet { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.sheet-head { max-width: 48em; margin-bottom: 22px; }
.sheet-head h3 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.95rem); font-weight: 800; line-height: 1.3; }
.sheet-head p { margin-top: 10px; color: var(--muted); }
.chapter { padding-block: 44px 8px; border-top: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--void), transparent); }
.chapter h2 { color: var(--cyan); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.chapter p { max-width: 40em; margin-top: 8px; color: var(--muted); }
.chapter + .sheet { border-top: 0; }
.asks { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--void); }
.asks p { max-width: 48em; color: var(--muted); font-size: 15px; }
.asks b { color: var(--text); }
.sheet-foot { max-width: 60em; margin-top: 14px; color: var(--faint); font-size: 13.5px; }
.sample .sub { margin: 26px 0 10px; font-size: 15px; font-weight: 800; }
.sub-note { max-width: 48em; }
.sample .sub:first-of-type { margin-top: 4px; }
.sub-note { margin: -4px 0 10px; }
.glossline { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--void); color: var(--muted); font-size: 14.5px; }
.glossline b { margin-right: 10px; color: var(--text); }

/* Excel 房價日曆 excerpt: cell text exactly as the sheet writes it */
.xcal-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.xcal { min-width: 760px; padding: 12px; }
.xcal-wd, .xcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.xcal-wd span { padding-bottom: 6px; color: var(--faint); font-size: 12px; text-align: center; }
.xcell { display: flex; flex-direction: column; gap: 1px; min-height: 150px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--void); font-size: 12.5px; line-height: 1.5; }
.xcell b { font-size: 14px; }
.xcell i { color: var(--muted); font-style: normal; }
.xcell .p { color: var(--text); font-weight: 700; }
.xcell.lo .v, .xcell.lo .p { color: var(--lo); }
.xcell.mid .v, .xcell.mid .p { color: var(--mid-text); }
.xcell.hi .v, .xcell.hi .p { color: var(--hi); }
.xcell.is-na { background: transparent; border: 1px dashed var(--na); }
.xcell.is-empty { visibility: hidden; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpis div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.kpis span { display: block; color: var(--muted); font-size: 13.5px; }
.kpis b { display: block; margin-top: 2px; font-size: 1.6rem; font-weight: 800; line-height: 1.3; }

.screen { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.screen-top { max-width: 46em; margin-bottom: 28px; }
.screen-top h2 { margin-bottom: 14px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.screen-top .lede { font-size: 17px; }
.screen .shot { margin-top: 0; }
.screen-note { margin-top: 10px; color: var(--faint); font-size: 13.5px; }
.screen-notes { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 48px; margin-top: 28px; }
.asks-list h3 { margin-bottom: 8px; color: var(--cyan); font-size: 15px; font-weight: 800; }
.asks-list ul { margin: 0; padding: 0; list-style: none; }
.asks-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.callouts { margin: 0; padding: 0; list-style: none; }
.callouts li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.callouts li:first-child { border-top: 0; padding-top: 2px; }
.callouts b { display: block; color: var(--text); }
.callouts .ref { margin: 3px 0 0; }
.screen-more { max-width: 60em; margin-top: 18px; color: var(--faint); font-size: 14px; }
.side-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px 48px; align-items: start; }
.side-layout .screen-notes { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.shot-dialog { max-width: 942px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.phone-only { display: none; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.foot-brand { margin-bottom: 10px; }
.foot .small { max-width: 46em; }
.foot-links { margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 999px) {
  .hero, .report, .screen-notes, .side-layout { grid-template-columns: minmax(0, 1fr); }
  .shot-dialog { margin-inline: auto; }
  .film { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .specs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs li:nth-child(3) { border-left: 0; padding-left: 0; }
  .specs li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sheet-head { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cal-wd { display: none; }
  .cal { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .day { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
  .day b { flex-basis: 100%; }
  .day.is-empty, .day.is-na, .day[data-late] { display: none; }
  .wd-m { display: inline; }
  .month-phone-note { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-inner > .btn { margin-left: auto; }
}

@media (max-width: 760px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .steps, .limits-grid, .plans, .sheets { grid-template-columns: minmax(0, 1fr); }
  .phone-only { display: inline; }
  .tour-copy .ref, .callouts .ref { display: none; }   /* the numbered markers are hidden on phones */
  .callouts li { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .specs li { padding: 20px 16px; }
  .specs li:nth-child(odd) { padding-left: 0; }

  /* phone: show the screenshot region at its real size instead of a 0.26x thumbnail;
     the full image is one tap away, and nothing is laid over the crop */
  .shot img { height: 300px; object-fit: none; object-position: var(--fx) var(--fy); }
  .shot-dialog img { height: 220px; }
  .pin { display: none; }
  .tour-copy .text-link { display: none; }
  .shot-full {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-top: 1px solid var(--line);
    background: var(--panel);
    color: var(--cyan);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }
  .shot-full::after { content: "↗"; margin-left: 6px; }

  .notify { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .free-inner { grid-template-columns: minmax(0, 1fr); }
  .qr { display: none; }  /* nobody can scan their own phone screen; the LINE button does the job */
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .month { padding: 16px; }
  .kpis b { font-size: 1.35rem; }
}

@media (max-width: 359px) {
  .brand-name { display: none; }
  .hero h1 { font-size: 1.85rem; }   /* keeps 「哪幾天比對手便宜，」 on one line at 320px */
  .specs b { font-size: 1.25rem; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- languages: menu, market note, per-script fonts ---------- */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); background: var(--panel); }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-switch ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: calc(var(--z-nav) + 1);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 16px 40px rgba(2, 4, 10, .6);
}
.lang-switch a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.lang-switch a:hover { background: var(--panel-soft); }
.lang-switch a[aria-current] { color: var(--cyan); font-weight: 700; }
.market-note { max-width: 40em; margin-top: 16px; padding-left: 12px; border-left: 3px solid var(--cyan); color: var(--muted); font-size: 15px; }
.section-note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.month-ref { margin-top: 6px; }
.lang-switch a[lang="th"] { font-family: "Leelawadee UI", "Noto Sans Thai", "Sukhumvit Set", Thonburi, Tahoma, sans-serif; }

/* Latin and Thai text get their own faces first; the Chinese faces stay for the demo hotel names */
html[lang="en"], html[lang="vi"] { --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans", Arial, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif; }
html[lang="th"] { --font: "Leelawadee UI", "Noto Sans Thai", "Sukhumvit Set", Thonburi, "Segoe UI", Tahoma, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif; }
html[lang="th"] :is(h1, h2, h3) { line-height: 1.45; word-break: normal; }   /* room for stacked tone marks */

/* longer words in other languages: the big figures and the plan prices may wrap */
.specs b { white-space: normal; text-wrap: balance; }
.price span { display: inline-block; }   /* a break opportunity before "/month" */

@media (max-width: 899px) {
  .nav-inner > .lang-switch { margin-left: auto; }
  .nav-inner > .btn { margin-left: 0; }
  .lang-switch { position: static; }   /* the menu then hangs from the header's right edge */
  .lang-switch ul { top: calc(100% - 4px); right: 16px; }
}
@media (max-width: 539px) {
  .brand-name { display: none; }   /* phones: logo mark, language menu and the button share the header */
}
@media (max-width: 400px) {
  .nav-inner { gap: 12px; }
}
@media (max-width: 359px) {
  .lang-switch summary > span:not(.sr-only) { display: none; }   /* globe only; the label stays for screen readers */
}
