/* Sindal Technology International Limited — sindaltech.com
   Single stylesheet. Same-origin only: no CDN, no external font host, no analytics.

   Typeface: IBM Plex Sans / IBM Plex Mono, SIL Open Font Licence 1.1, self-hosted
   under /assets/fonts/ (Latin subsets only — Chinese falls back to the system face,
   a CJK webfont is far too heavy to serve here).

   Cloudflare edge-caches /assets/* for 4 hours and the deploy token is read-only,
   so this file is linked as /assets/site.css?v=YYYYMMDD. Bump that query in all
   three pages whenever this file changes. */

@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --brand:       #1c83bd;
  --brand-mid:   #2d619d;
  --brand-deep:  #2d498a;
  --brand-light: #7dbfe1;

  /* the navy furniture — identical in both themes */
  --navy-900:    #080e1e;
  --navy-800:    #0e1830;
  --navy-700:    #16265a;
  --on-navy:     #c3d6ea;
  --on-navy-dim: #8aa2be;
  --navy-rule:   rgba(147, 187, 226, .16);

  --bg:        #ffffff;
  --bg-band:   #f4f8fc;
  --surface:   #ffffff;
  --ink:       #0d1729;
  --body:      #3d4f65;
  --muted:     #6b7d92;
  --rule:      #e4eaf1;
  --rule-firm: #ccd8e5;
  --link:      #1a5f9e;
  --link-hover:#2d498a;
  --tint:      #eaf3fb;

  --shadow-sm: 0 1px 2px rgba(13, 23, 41, .05);

  --measure: 40rem;
  --page: 75rem;

  --sans: "Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang HK", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei",
          "Noto Sans CJK HK", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0a0f1a;
    --bg-band:   #0e1526;
    --surface:   #121b2c;
    --ink:       #e9f1fa;
    --body:      #b8c8da;
    --muted:     #8b9db2;
    --rule:      #1e2c40;
    --rule-firm: #2e4058;
    --link:      #7dbfe1;
    --link-hover:#a9d8f2;
    --tint:      #10203a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

[lang="zh-Hant-HK"] { line-height: 1.85; }
[lang="zh-Hant-HK"] p, [lang="zh-Hant-HK"] li { letter-spacing: .01em; }

/* ---------- layout ---------- */

.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 3.5rem; }
@media (max-width: 60rem) { .container { padding: 0 2rem; } }
@media (max-width: 40rem) { .container { padding: 0 1.375rem; } }

.prose { max-width: var(--measure); }
.band { background: var(--bg-band); }
section.lang { padding: 0; }

.block { padding: 5.75rem 0; }
@media (max-width: 46rem) { .block { padding: 3.25rem 0; } }
.block + .block:not(.band):not(.band-dark) { border-top: 1px solid var(--rule); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.split-body { max-width: var(--measure); }
.split-body > h2:first-child { margin-top: 0; }

@media (min-width: 64rem) {
  .split { grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); column-gap: 4.5rem; row-gap: 2.75rem; }
  .split-head { grid-column: 1; position: sticky; top: 6rem; align-self: start; margin: .6rem 0 0; }
  .split-body { grid-column: 2; }
  .split > .full { grid-column: 1 / -1; }
  .split > .prose.full { grid-column: 2 / -1; }
}

/* ---------- type ---------- */

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -.022em; }

h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem); line-height: 1.06; margin: 0 0 .55rem; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem); line-height: 1.18; margin: 0 0 1.1rem; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.4; margin: 1.75rem 0 .35rem; font-weight: 600; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin: 0 0 .5rem; }
li::marker { color: var(--brand); }

strong { color: var(--ink); font-weight: 600; }
address { font-style: normal; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1.1rem;
}
.eyebrow.plain { color: var(--muted); }

.lede { font-size: clamp(1.15rem, 1rem + .65vw, 1.4rem); line-height: 1.5; color: var(--ink); margin: 0 0 1.35rem; text-wrap: pretty; }
.alt-name { font-size: clamp(1.05rem, .95rem + .4vw, 1.35rem); color: var(--muted); margin: 0 0 1.75rem; font-weight: 400; }
.note { font-size: .9rem; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .7rem 1.1rem; z-index: 20; }
.skip:focus { left: 0; }

/* ---------- masthead ---------- */

.masthead { position: sticky; top: 0; z-index: 10; background: var(--navy-900); border-bottom: 1px solid var(--navy-rule); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; padding-block: .55rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand img { display: block; width: auto; height: 2rem; }
.brand .name { font-size: 1.3rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.brand .sub {
  display: block;
  font-family: var(--mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
  margin-top: .32rem;
}

.topnav { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; }
.topnav a { color: var(--on-navy); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current] { color: #fff; }
.topnav .lang-jump { color: #fff; border: 1px solid var(--navy-rule); background: rgba(147, 187, 226, .08); border-radius: 999px; padding: .3rem .85rem; }
.topnav .lang-jump:hover { border-color: var(--brand-light); background: rgba(147, 187, 226, .16); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 6rem;
  color: var(--on-navy);
  background:
    radial-gradient(58rem 32rem at 84% -8%, rgba(45, 150, 210, .5), transparent 62%),
    radial-gradient(44rem 30rem at 2% 108%, rgba(45, 73, 138, .55), transparent 66%),
    linear-gradient(162deg, var(--navy-900) 0%, #101c3d 48%, var(--navy-700) 100%);
}
@media (max-width: 46rem) { .hero { padding: 3.25rem 0 3rem; } }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4rem; }

.hero .eyebrow { color: var(--brand-light); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero strong { color: #fff; }
/* `ch` is sized on the Latin "0"; CJK glyphs are far wider, so the Chinese
   company name would break mid-name. Let it use the column instead. */
[lang="zh-Hant-HK"] .hero h1 { max-width: none; }
.hero .alt-name { color: rgba(195, 214, 234, .82); }
.hero .lede { color: rgba(226, 238, 250, .94); max-width: 33rem; }

.hero-mark { display: none; }
@media (min-width: 58rem) {
  .hero-mark { display: block; width: auto; height: 18rem; justify-self: end; filter: drop-shadow(0 24px 56px rgba(6, 12, 28, .65)); }
}

.factline { display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--on-navy-dim); }
.factline li { margin: 0; display: flex; align-items: center; gap: .65rem; }
.factline li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4fa8dc; flex: none; }

@media (max-width: 46rem) { .factline { flex-direction: column; gap: .45rem 0; } }

/* ---------- section nav ---------- */

.sectionnav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 1.15rem 0; list-style: none; font-size: .8125rem; }
.sectionnav li { margin: 0; }
.sectionnav a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--body); text-decoration: none; background: var(--surface); transition: border-color .15s, color .15s; }
.sectionnav a:hover { border-color: var(--brand); color: var(--link); }

/* ---------- cards ---------- */

.cards { display: grid; gap: 1.375rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 2.75rem 0 0; padding: 0; list-style: none; }
.card { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 1.875rem 1.75rem 2rem; box-shadow: var(--shadow-sm); }
.card h3 { margin: 0 0 .5rem; font-size: 1.125rem; }
.card p { font-size: .9375rem; line-height: 1.62; margin-bottom: 0; }
.card .icon {
  display: block;
  width: 3rem; height: 3rem;
  padding: .75rem;
  margin-bottom: 1.25rem;
  border-radius: 13px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(28, 131, 189, .14), rgba(45, 73, 138, .14));
}

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 2.25rem 2.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 3rem 0 0; padding: 0; list-style: none; }
@media (max-width: 34rem) { .steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.steps li { counter-increment: step; position: relative; margin: 0; padding-top: 1.4rem; border-top: 2px solid var(--rule); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--brand);
  margin-bottom: .75rem;
}
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 2.875rem; height: 2px; background: var(--brand); }
.steps h3 { margin: 0 0 .45rem; }
.steps p { font-size: .9375rem; line-height: 1.62; margin-bottom: 0; }

/* ---------- callout ---------- */

.callout { border: 1px solid var(--rule); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--tint); padding: 1.25rem 1.4rem; margin: 2.25rem 0; }
.callout p { margin-bottom: 0; }

/* ---------- dark band ---------- */

.band-dark {
  color: var(--on-navy);
  background:
    radial-gradient(48rem 26rem at 88% 0%, rgba(45, 150, 210, .28), transparent 64%),
    linear-gradient(168deg, var(--navy-800) 0%, #101d3e 60%, var(--navy-700) 100%);
}
.band-dark h2, .band-dark h3, .band-dark strong { color: #fff; }
.band-dark .eyebrow.plain { color: var(--brand-light); }
.band-dark a { color: #a8d8f3; }
.band-dark a:hover { color: #fff; }
.band-dark li::marker { color: var(--brand-light); }
.band-dark .callout { background: rgba(147, 187, 226, .07); border-color: var(--navy-rule); border-left-color: var(--brand-light); }

/* ---------- flow diagram ---------- */

.flow { display: block; width: 100%; height: auto; margin: 3rem 0 0; }
.flow rect { fill: rgba(147, 187, 226, .06); stroke: rgba(147, 187, 226, .24); }
.flow .fl-line { fill: none; stroke: rgba(147, 187, 226, .45); stroke-width: 1.5; }
.flow .fl-t { fill: #fff; font-size: 18px; font-weight: 600; }
.flow .fl-s { fill: rgba(195, 214, 234, .78); font-size: 14.5px; }
.flow .fl-c { fill: rgba(195, 214, 234, .6); font-size: 13.5px; }
.flow .fl-tag { fill: var(--brand-light); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; }

/* ---------- FAQ ---------- */

.faq { margin: 2.25rem 0 0; }
.faq > div { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.faq > div:last-child { border-bottom: 1px solid var(--rule); }
.faq h3 { margin: 0 0 .45rem; }
.faq p { margin-bottom: 0; }

/* ---------- legal pages ---------- */

.doc-head { padding: 3.75rem 0 1.5rem; }
.doc-head h1 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.75rem); max-width: none; }

.toc { margin: 1.75rem 0 0; padding: 1.35rem 1.5rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.toc p { margin: 0 0 .7rem; font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; font-size: .9375rem; counter-reset: toc; }
.toc li { margin: 0 0 .35rem; break-inside: avoid; counter-increment: toc; }
.toc li::before { content: counter(toc) "."; font-family: var(--mono); color: var(--muted); font-size: .8125rem; margin-right: .45rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 40rem) { .toc ol { columns: 1; } }

.doc { padding-bottom: 2rem; }
.doc h2 { font-size: 1.3rem; margin: 3.25rem 0 1rem; padding-top: .7rem; border-top: 2px solid var(--rule); position: relative; }
.doc h2::after { content: ""; position: absolute; top: -2px; left: 0; width: 2.5rem; height: 2px; background: var(--brand); }
.doc h2:first-of-type { margin-top: 2rem; }
.doc h3 { margin: 2rem 0 .45rem; color: var(--brand-mid); font-size: 1rem; }
@media (prefers-color-scheme: dark) { .doc h3 { color: var(--brand-light); } }

.doc dl { margin: 0 0 1.1rem; }
.doc dt { font-weight: 600; color: var(--ink); margin: 1rem 0 .2rem; }
.doc dd { margin: 0 0 .5rem; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 1.6rem; margin: 0 0 1.25rem; box-shadow: var(--shadow-sm); }
.panel h3:first-child { margin-top: 0; }

.meta { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }

.doc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 64rem) {
  .doc-split { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: 4.5rem; row-gap: 0; }
  .doc-split > .full { grid-column: 1 / -1; }
  .doc-split > .doc { grid-column: 2; }
  .doc-split > .toc {
    grid-column: 1; position: sticky; top: 6rem; align-self: start;
    margin: 2.75rem 0 0; padding: .1rem 0 .1rem 1.2rem;
    border: 0; border-left: 1px solid var(--rule); border-radius: 0; background: none;
    max-height: calc(100vh - 9rem); overflow-y: auto;
  }
  .doc-split > .toc ol { columns: 1; font-size: .875rem; }
  .doc-split > .doc h2:first-of-type { margin-top: 2.75rem; }
}

/* ---------- language divider ---------- */

.langsplit {
  display: flex; align-items: center; gap: 1.25rem;
  max-width: var(--page); margin: 0 auto; padding: 4rem 3.5rem 0;
  color: var(--muted);
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.langsplit::before, .langsplit::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
@media (max-width: 40rem) { .langsplit { padding-inline: 1.375rem; } }

/* ---------- footer ---------- */

.sitefoot { background: var(--navy-900); color: var(--on-navy-dim); padding: 4.5rem 0 2.25rem; font-size: .9rem; }
.foot-grid { display: grid; gap: 3.5rem; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 54rem) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; } }

.foot-brand .brand { margin-bottom: 1.4rem; }
.foot-brand address { font-size: .84rem; line-height: 1.75; color: #7b91ab; margin-bottom: 1rem; }
.foot-brand .legal-name { color: #dbe6f2; }
.foot-brand a { color: var(--on-navy); }
.foot-brand a:hover { color: #fff; }

.foot-col h2 { font-family: var(--mono); font-size: .625rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-navy-dim); margin: 0 0 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 .6rem; }
.foot-col a { color: var(--on-navy); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }

.foot-base { max-width: var(--page); margin: 3.25rem auto 0; padding: 1.4rem 3.5rem 0; border-top: 1px solid var(--navy-rule); color: #7b91ab; font-size: .8125rem; }
@media (max-width: 40rem) { .foot-base { padding-inline: 1.375rem; } }

/* ---------- misc ---------- */

:target { scroll-margin-top: 7rem; }
hr.lang { display: none; }

@media print {
  .masthead, .sectionnav, .toc, .hero-mark, .skip, .flow { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .band, .band-dark, .hero, .sitefoot { background: #fff !important; color: #000 !important; }
  .band-dark h2, .band-dark h3, .band-dark strong, .hero h1, .hero .lede { color: #000 !important; }
  a { color: #000; }
  .doc h2 { break-after: avoid; }
}
