/* Website tab visual system.
   Paper #FFFEFD, Ink #1A1A1A, ink-soft #484848, plum #67295F,
   lavender #D9C9D7, sky #6AAAE4, Warm #F7F3F5.
   Latin display: Fraunces. Traditional Chinese display: Noto Serif HK.
   Latin UI: Inter. Traditional Chinese body, nav, and pills: Noto Sans HK. */

@font-face {
  font-family: "Noto Sans HK";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-hk-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif HK";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-serif-hk-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}

:root {
  --paper: #FFFEFD;
  --ink: #1A1A1A;
  --ink-soft: #484848;
  --plum: #67295F;
  --lavender: #D9C9D7;
  --sky: #6AAAE4;
  --warm: #F7F3F5;
  --line: #d4d4d4;
  --sans: "Noto Sans HK", "Inter", "PingFang HK", "Helvetica Neue", Arial, sans-serif;
  --display: "Noto Serif HK", "Fraunces", "Noto Sans HK", serif;
  --gap: 16px;
  --gutter: 32px;
  --leading: 1.4;
  --header: 72px;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--paper); color: var(--ink); }

body {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: normal;
  line-height: var(--leading);
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
button, select { font: inherit; letter-spacing: normal; }
.headline, .section-title, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: normal;
}

.skip {
  left: var(--gutter);
  position: absolute;
  top: 0;
  transform: translateY(-120%);
  z-index: 5;
}
.skip:focus { background: var(--paper); color: var(--ink); padding: 8px 32px; transform: none; }

.site-header {
  align-items: center;
  display: flex;
  gap: var(--gap);
  height: var(--header);
  justify-content: space-between;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 3;
}
.site-header-ink { background: var(--ink); color: var(--paper); }
.site-header-overlay {
  background: transparent;
  color: var(--paper);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.brand { font-size: 0.95rem; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu-button { display: none; }
.menu-panel { display: none; list-style: none; margin: 0; padding: 0; }

.button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--sans);
  justify-content: center;
  justify-self: start;
  line-height: 1;
  min-height: 48px;
  padding: 8px 32px;
  text-decoration: none;
  width: fit-content;
}
.button-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-secondary { background: var(--paper); color: var(--ink); }
.site-header .button-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button:disabled, .button-closed {
  background: var(--warm);
  border-color: var(--warm);
  color: var(--ink);
  cursor: not-allowed;
}
.button-wide { min-width: min(100%, 40rem); }

.hero {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 12px;
  padding: 28px var(--gutter) 64px;
}
.eyebrow { color: var(--plum); font-size: 0.875rem; }
.hero .eyebrow, .kicker { color: var(--lavender); }
.headline { font-size: 56px; line-height: 1.24; max-width: 16em; }
.hero .summary, .footnote { max-width: 62rem; }
.muted { color: var(--ink-soft); }

.cover {
  align-items: end;
  color: var(--paper);
  display: grid;
  min-height: 100svh;
  position: relative;
}
.cover-photo {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
.cover::after {
  background: linear-gradient(to top, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.28) 42%, rgba(26, 26, 26, 0.18) 100%);
  content: "";
  inset: 0;
  position: absolute;
}
.cover-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  max-width: 920px;
  padding: 0 var(--gutter) 48px;
  position: relative;
  z-index: 1;
}
.cover .headline { font-size: 64px; line-height: 1.24; margin: 8px 0 12px; max-width: none; }
.cover .lede { margin: 0 0 20px; max-width: 36rem; }
.cover .button { margin-bottom: 16px; }
.cover .index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cover .index a { color: rgba(255, 254, 253, 0.86); font-size: 0.95rem; }

.section { display: grid; gap: var(--gap); padding: 64px var(--gutter); }
#process-preview { background: var(--warm); }
.section-title { font-size: 1.75rem; line-height: 1.24; }
.split, .points, .bullets { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; }
.point, .doc { display: grid; gap: 8px; }
.step, .doc, .fee-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 24px 0;
}
.step-index { color: var(--ink-soft); font-size: 0.875rem; }
.step h3, .point h3, .doc h3 { font-size: 1.35rem; }
.note { display: grid; gap: 8px; padding: 8px 0 24px; }
.note h3 { font-size: 1rem; }
.fee-row { align-items: center; grid-template-columns: 1fr auto; }
.fee-row strong { font-weight: 400; }

.field, .select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  min-height: 48px;
  padding: 8px 12px;
}
.calc { align-items: center; display: flex; flex-wrap: wrap; gap: var(--gap); }
.total {
  align-items: baseline;
  background: var(--warm);
  border-radius: 4px;
  display: flex;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
}
.status-verified {
  background: var(--sky);
  border-radius: 999px;
  color: var(--paper);
  display: block;
  padding: 14px 18px;
}

.cta-row { align-items: center; display: flex; gap: var(--gap); justify-content: space-between; }
.cta-center { display: grid; gap: var(--gap); justify-items: center; text-align: center; }
.only-mobile { display: none; }
ol { padding-left: 1.25rem; }

.site-footer { background: var(--ink); color: var(--paper); display: grid; gap: 32px; padding: 64px var(--gutter) 32px; }
.footer-top { display: flex; gap: 48px; justify-content: space-between; }
.footer-links { display: flex; gap: 48px; }
.footer-links ul { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.menu-panel.is-open { display: grid; gap: 12px; }
.legal { font-size: 0.875rem; }

@media (min-width: 800px) {
  .only-mobile { display: none !important; }
  .menu-panel { display: none !important; }
}

@media (max-width: 799px) {
  :root { --gutter: 20px; --header: 64px; }
  .nav, .site-header .button-primary, .brand-rest { display: none; }
  .only-desktop { display: none !important; }
  .only-mobile { display: revert; }
  .menu-button {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--paper);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    justify-content: center;
    min-height: 48px;
    padding: 8px 20px;
  }
  .site-header-ink .menu-button { background: transparent; border-color: var(--paper); color: var(--paper); }
  .menu-panel.is-open { background: var(--ink); color: var(--paper); display: grid; padding: 8px var(--gutter) 20px; }
  .cover { min-height: 100svh; }
  .cover .headline { font-size: 40px; }
  .cover-copy { padding-bottom: 28px; }
  .headline { font-size: 36px; }
  .split, .points, .bullets, .cta-row, .footer-top, .footer-links { display: grid; grid-template-columns: 1fr; }
  .fee-row { align-items: start; }
}
