/* seo 2026-11-24 */
/* 連線建議 — Apple-style, mobile-first, light/dark via prefers-color-scheme */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}

@font-face {
  font-family: "Noto Sans HK";
  src: url("../fonts/NotoSansHK-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans HK";
  src: url("../fonts/NotoSansHK-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans HK";
  src: url("../fonts/NotoSansHK-Bold.otf") format("opentype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-grouped: #f5f5f7;
  --bg-fill: rgba(120, 120, 128, 0.12);
  --bg-fill-strong: rgba(120, 120, 128, 0.16);
  --bg-accent-soft: rgba(0, 122, 255, 0.12);
  --label: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #8e8e93;
  --separator: rgba(60, 60, 67, 0.16);
  --accent: #007aff;
  --accent-press: #0066d6;
  --wa: #1f8a4c;
  --wa-press: #1a7541;
  --wa-text: #ffffff;
  --on-accent: #ffffff;
  --shadow-card: 0 0.5px 1px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.05);
  --shadow-dock: 0 -8px 24px rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(245, 245, 247, 0.78);
  --dock-bg: rgba(245, 245, 247, 0.82);
  --glow: radial-gradient(120% 80% at 50% -10%, rgba(0, 122, 255, 0.14), rgba(245, 245, 247, 0) 60%);
  --hairline: 0.5px;
  --radius-card: 18px;
  --radius-btn: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "PingFang HK", "PingFang TC", "Noto Sans HK", "Noto Sans CJK HK",
    "Hiragino Sans CNS", "Noto Sans TC", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page-pad: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --bg-grouped: #000000;
    --bg-fill: rgba(120, 120, 128, 0.28);
    --bg-fill-strong: rgba(120, 120, 128, 0.36);
    --bg-accent-soft: rgba(10, 132, 255, 0.22);
    --label: #f5f5f7;
    --secondary: rgba(235, 235, 245, 0.62);
    --tertiary: rgba(235, 235, 245, 0.38);
    --separator: rgba(84, 84, 88, 0.65);
    --accent: #0a84ff;
    --accent-press: #409cff;
    --wa: #30d158;
    --wa-press: #3de066;
    --wa-text: #003313;
    --on-accent: #ffffff;
    --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-dock: 0 -10px 28px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --dock-bg: rgba(0, 0, 0, 0.72);
    --glow: radial-gradient(120% 80% at 50% -10%, rgba(10, 132, 255, 0.22), rgba(0, 0, 0, 0) 62%);
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-grouped: #f5f5f7;
  --bg-fill: rgba(120, 120, 128, 0.12);
  --bg-fill-strong: rgba(120, 120, 128, 0.16);
  --bg-accent-soft: rgba(0, 122, 255, 0.12);
  --label: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #8e8e93;
  --separator: rgba(60, 60, 67, 0.16);
  --accent: #007aff;
  --accent-press: #0066d6;
  --wa: #1f8a4c;
  --wa-press: #1a7541;
  --wa-text: #ffffff;
  --on-accent: #ffffff;
  --shadow-card: 0 0.5px 1px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.05);
  --shadow-dock: 0 -8px 24px rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(245, 245, 247, 0.78);
  --dock-bg: rgba(245, 245, 247, 0.82);
  --glow: radial-gradient(120% 80% at 50% -10%, rgba(0, 122, 255, 0.14), rgba(245, 245, 247, 0) 60%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --bg-grouped: #000000;
  --bg-fill: rgba(120, 120, 128, 0.28);
  --bg-fill-strong: rgba(120, 120, 128, 0.36);
  --bg-accent-soft: rgba(10, 132, 255, 0.22);
  --label: #f5f5f7;
  --secondary: rgba(235, 235, 245, 0.62);
  --tertiary: rgba(235, 235, 245, 0.38);
  --separator: rgba(84, 84, 88, 0.65);
  --accent: #0a84ff;
  --accent-press: #409cff;
  --wa: #30d158;
  --wa-press: #3de066;
  --wa-text: #003313;
  --on-accent: #ffffff;
  --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-dock: 0 -10px 28px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --dock-bg: rgba(0, 0, 0, 0.72);
  --glow: radial-gradient(120% 80% at 50% -10%, rgba(10, 132, 255, 0.22), rgba(0, 0, 0, 0) 62%);
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --nav-bg: var(--bg);
    --dock-bg: var(--bg);
  }
}

@media (prefers-contrast: more) {
  :root {
    --separator: var(--label);
    --nav-bg: var(--bg);
    --dock-bg: var(--bg);
    --shadow-card: 0 0 0 1.5px var(--label);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

img, svg {
  display: block;
}

button, a {
  font-family: inherit;
}

button {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Desktop: centred phone-like column */
.shell {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: var(--bg);
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: var(--glow);
  background-repeat: no-repeat;
  overflow: hidden;
}

@media (min-width: 560px) {
  body { overflow: auto; }
  .shell {
    padding: 32px 16px;
    align-items: center;
    background: #e8e8ed;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .shell { background: #0b0b0d; }
  }
  [data-theme="light"] .shell { background: #e8e8ed; }
  [data-theme="dark"] .shell { background: #0b0b0d; }
  .app {
    height: min(844px, calc(100dvh - 64px));
    border-radius: 40px;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 18px 50px rgba(0, 0, 0, 0.14);
    overflow: hidden;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .app {
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 18px 50px rgba(0, 0, 0, 0.6);
    }
  }
  [data-theme="dark"] .app {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 18px 50px rgba(0, 0, 0, 0.6);
  }
  [data-theme="light"] .app {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 18px 50px rgba(0, 0, 0, 0.14);
  }
}

/* Preview-only iPhone chrome (query param); not shown in real use */
.status-bar,
.home-indicator {
  display: none;
}

[data-preview="1"] .status-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  height: 54px;
  padding: 0 24px 8px;
  color: var(--label);
  position: relative;
  z-index: 8;
}

[data-preview="1"] .status-time {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  width: 64px;
}

[data-preview="1"] .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 74px;
  justify-content: flex-end;
}

[data-preview="1"] .home-indicator {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
  height: 22px;
  pointer-events: none;
}

[data-preview="1"] .home-indicator span {
  width: 128px;
  height: 5px;
  border-radius: 100px;
  background: var(--label);
  opacity: 0.28;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 8px 0 6px;
  position: relative;
  z-index: 5;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav.is-hidden {
  display: none;
}

.nav-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 50%;
}

.nav-btn:active {
  transform: scale(0.94);
  transition: transform 100ms ease-out;
}

.nav-btn svg {
  width: 28px;
  height: 28px;
}

.nav-btn.is-ghost {
  visibility: hidden;
  pointer-events: none;
}

.progress {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: var(--bg-fill-strong);
  transition: width 0.35s var(--ease-out), background 0.25s ease;
}

.progress-dot.is-done,
.progress-dot.is-current {
  background: var(--accent);
}

.progress-dot.is-current {
  width: 16px;
}

.stage {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--page-pad) 16px;
  overscroll-behavior: contain;
}

.view.is-active,
.view.is-leaving,
.view.is-entering {
  display: flex;
}

.view.is-entering.from-end {
  transform: translateX(100%);
}

.view.is-entering.from-start {
  transform: translateX(-30%);
  opacity: 0.4;
}

.view.is-leaving.to-start {
  transform: translateX(-30%);
  opacity: 0.4;
}

.view.is-leaving.to-end {
  transform: translateX(100%);
}

.view.is-active {
  transform: translateX(0);
  opacity: 1;
}

.view.is-animating {
  transition: transform 0.42s var(--ease-out), opacity 0.42s var(--ease-out);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .view.is-entering,
  .view.is-leaving {
    transform: none;
  }
  .view.is-entering {
    opacity: 0;
  }
  .view.is-animating {
    transition: opacity 0.16s ease;
    will-change: opacity;
  }
  .nav-btn:active,
  .btn:active,
  .choice:active,
  .text-link:active {
    transform: none;
  }
}

.kicker {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--secondary);
  line-height: 1.3;
}

.display {
  margin: 10px 0 0;
  font-size: clamp(32px, 8.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  color: var(--label);
}

.lede {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--secondary);
  max-width: 22em;
}

.lede strong {
  color: var(--label);
  font-weight: 500;
}

.points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--secondary);
}

.points .mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.points .mark svg {
  width: 16px;
  height: 16px;
}

.q-title {
  margin: 12px 0 20px;
  font-size: clamp(28px, 7.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
}

.q-help {
  margin: -8px 0 18px;
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.5;
}

.choices {
  display: grid;
  gap: 10px;
  padding-bottom: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  color: var(--label);
  transition: transform 100ms ease-out, background 0.18s ease, box-shadow 0.18s ease;
}

.choice:active {
  transform: scale(0.97);
}

.choice.is-selected {
  background: var(--bg-accent-soft);
  box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-card);
}

.choice-text {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.choice-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--secondary);
  line-height: 1.4;
}

.tick {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--separator);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.choice.is-selected .tick {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.tick svg {
  width: 12px;
  height: 12px;
}

.dock {
  flex-shrink: 0;
  padding: 10px var(--page-pad) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--dock-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-dock);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.dock.is-hidden {
  display: none;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 100ms ease-out, background 0.16s ease, opacity 0.16s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:active {
  background: var(--accent-press);
}

.btn-wa {
  background: var(--wa);
  color: var(--wa-text);
  gap: 8px;
}

.btn-wa:active {
  background: var(--wa-press);
}

.btn-wa svg {
  width: 20px;
  height: 20px;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.text-link,
.btn-quiet {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-radius: 12px;
}

.text-link:active,
.btn-quiet:active {
  transform: scale(0.97);
  transition: transform 100ms ease-out;
  text-decoration: none;
  opacity: 0.72;
}

.legal-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-bottom: 2px;
}

.legal-row a,
.footnote-link {
  color: var(--secondary);
  font-size: 13px;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.nav-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--label);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.nav-title.is-hidden,
.progress.is-hidden {
  display: none;
}

.result-eyebrow {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--secondary);
}

.result-band {
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  font-size: clamp(44px, 12.5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.result-band .unit {
  font-size: 0.42em;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}

.result-band .plus {
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 0.35em;
}

.result-sub {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.result-why {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--secondary);
}

.callout {
  margin: 22px 0 8px;
  padding: 16px 16px 16px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.callout h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.callout p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--secondary);
}

.privacy-article {
  padding-bottom: 24px;
}

.privacy-article h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 7.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
}

.privacy-article .updated {
  margin: 10px 0 22px;
  font-size: 13px;
  color: var(--tertiary);
  letter-spacing: 0.01em;
}

.privacy-article h2 {
  margin: 28px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.privacy-article p {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--secondary);
}

.privacy-article p strong {
  color: var(--label);
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  margin: 24px var(--page-pad);
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  color: var(--secondary);
}

/* Focus */
.btn:focus-visible,
.choice:focus-visible,
.nav-btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 374px) {
  :root { --page-pad: 16px; }
  .display { font-size: 30px; }
  .q-title { font-size: 26px; }
}

.view[data-view="home"] {
  padding-bottom: 28px;
}

.explain,
.faq {
  margin: 36px 0 0;
  padding-top: 4px;
}

.explain h2,
.faq h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--label);
}

.explain h3,
.faq h3 {
  margin: 22px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--label);
}

.explain p,
.faq p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--secondary);
}

.explain > p:first-of-type,
.faq > p:first-of-type {
  margin-top: 12px;
}
