/* Layout: left-aligned column on white with navy ink and a sky-blue accent; the
   firm's own register extract sits beside the headline; form codes are in mono. */
:root {
  --paper: #FFFFFF;
  --paper-2: #EAF5FD;
  --ink: #0B1F33;
  --ink-soft: #4B5D70;
  --line: #CBDFEF;
  --blue: #0369A1;
  --sky: #38BDF8;
  --on-sky: #062A40;
  --band: #FFFFFF;
  --on-band: #0B1F33;
  --on-band-soft: #4B5D70;
  --band-line: #B8C7D6;
  --intl: "IBM Plex Sans Thai", "Noto Sans Myanmar", "Noto Sans SC";
  --display: "Archivo", var(--intl), "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", var(--intl), "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", var(--intl), ui-monospace, "SFMono-Regular", Menlo, monospace;
}
/* Single light theme on purpose: the page stays white in every viewer theme. */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec-alt { background: var(--paper-2); }

.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.lede { color: var(--ink-soft); max-width: 60ch; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Draft ribbon */
.ribbon { background: var(--sky); color: var(--on-sky); }
.ribbon .wrap { padding-block: 8px; font-family: var(--mono); font-size: 0.76rem; }

/* Language switcher */
.util .wrap { display: flex; justify-content: flex-end; padding-block: 10px 0; }
.langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 6px; }
.lang {
  font: inherit; font-size: 0.88rem; color: var(--ink-soft);
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 4px 8px; cursor: pointer;
}
.lang:hover { color: var(--ink); }
.lang[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--sky); }

/* Scripts with stacked marks or no letter case need looser setting */
html:lang(th) :is(h1, h2, h3, .due-day), html:lang(my) :is(h1, h2, h3, .due-day) { line-height: 1.45; letter-spacing: 0; }
html:lang(zh-Hans) :is(h1, h2, h3), html:lang(vi) :is(h1, h2, h3) { line-height: 1.22; letter-spacing: 0; }
html:lang(th) h1, html:lang(zh-Hans) h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); }
html:lang(my) h1 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
html:lang(vi) h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
html:lang(th) .due-day, html:lang(my) .due-day, html:lang(zh-Hans) .due-day, html:lang(vi) .due-day { font-size: 1.5rem; }
html:lang(th) :is(.eyebrow, .mono, .codes, dt, label, .when, .extract-head, .ruler li),
html:lang(my) :is(.eyebrow, .mono, .codes, dt, label, .when, .extract-head, .ruler li),
html:lang(zh-Hans) :is(.eyebrow, .mono, .codes, dt, label, .when, .extract-head, .ruler li) { letter-spacing: 0.02em; }
html:lang(my) body { line-height: 1.85; }

/* Header */
.top .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 28px;
  padding-block: 14px;
}
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
section[id], .fees { scroll-margin-top: 88px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: 1.3rem; letter-spacing: 0.04em; line-height: 1; }
.brand-sub { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px;
  border: 2px solid var(--blue);
  border-radius: 2px;
  background: var(--blue); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-accent { background: var(--sky); border-color: var(--sky); color: var(--on-sky); }
.nav .btn { padding: 9px 16px; font-size: 0.92rem; color: var(--paper); }
.nav .btn:hover { text-decoration: none; }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 104px);
}
.hero-copy { display: grid; gap: 26px; justify-items: start; }
h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.5rem);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.0;
  letter-spacing: -0.025em;
}
h1 mark {
  color: inherit;
  background: linear-gradient(transparent 62%, var(--sky) 62%, var(--sky) 92%, transparent 92%);
  padding-inline: 0.06em;
}
.hero .lede { font-size: 1.15rem; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.extract { border: 2px solid var(--sky); background: var(--paper); }
.extract-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  background: var(--sky); color: var(--on-sky); font-weight: 500;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.extract dl { padding: 6px 18px; }
.extract .row { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.extract .row:last-child { border-bottom: 0; }
.extract dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.extract dd { font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.extract dd.num { font-family: var(--mono); letter-spacing: 0.06em; }
.extract-foot { padding: 12px 18px; border-top: 2px solid var(--sky); font-size: 0.82rem; color: var(--ink-soft); }

/* Photos */
.portrait { position: relative; margin: 0 16px 16px 0; max-width: 440px; justify-self: end; width: 100%; }
.portrait::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; background: var(--sky); }
.portrait img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.portrait figcaption {
  position: absolute; left: -12px; bottom: 22px; max-width: 86%;
  display: grid; gap: 2px; padding: 12px 16px;
  background: var(--paper); border-left: 4px solid var(--blue);
}
.portrait strong { font-family: var(--display); font-weight: 750; font-size: 1.05rem; }
.portrait span { font-size: 0.9rem; color: var(--blue); font-weight: 600; }
.portrait small { font-size: 0.78rem; line-height: 1.4; color: var(--ink-soft); }
.band { margin: 0; line-height: 0; border-block: 4px solid var(--sky); }
.band img { display: block; width: 100%; height: clamp(150px, 23vw, 340px); object-fit: cover; }
.photo { margin: 0; line-height: 0; border-bottom: 4px solid var(--sky); }
.photo img { display: block; width: 100%; height: auto; }
.about-side { display: grid; gap: 22px; }
.cert-side { display: grid; gap: 32px; }
.ico { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.credits { flex-basis: 100%; font-size: 0.74rem; }
.credits a { color: inherit; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(22px, 3vw, 40px); }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service { display: grid; align-content: start; gap: 10px; padding-block: 26px 30px; border-top: 3px solid var(--sky); }
.service p { color: var(--ink-soft); font-size: 0.98rem; }
.codes { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.03em; color: var(--blue); }

/* Fees */
.fees { display: grid; gap: 22px; margin-top: clamp(44px, 6vw, 76px); }
.fees .sec-head { margin-bottom: 0; gap: 10px; }
.fee-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fee { display: grid; align-content: start; gap: 8px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.fee h3 { font-size: 1rem; }
.fee-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.fee-price strong { font-family: var(--display); font-weight: 850; font-stretch: 110%; font-size: 1.8rem; line-height: 1.2; color: var(--blue); font-variant-numeric: tabular-nums; }
.fee-price span { font-size: 0.9rem; color: var(--ink-soft); }
.fee > p:not(.fee-price) { font-size: 0.9rem; color: var(--ink-soft); }
.fee-cta { justify-self: start; margin-top: 4px; font-weight: 600; font-size: 0.92rem; }
.fees .fine { margin-top: 0; }

/* Lead capture */
.tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.tel svg, .mbar svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a.tel { color: var(--blue); }
.hook { font-weight: 600; color: var(--blue); }
.cta-band { background: var(--sky); color: var(--on-sky); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(30px, 5vw, 52px); }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 24ch; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cta-band .btn-ghost { background: transparent; color: var(--on-sky); border-color: var(--on-sky); }
.privacy { font-size: 0.82rem; color: var(--on-band-soft); }
.todo a { color: inherit; text-decoration: none; }
.mbar { display: none; }

/* Company setup */
.setup { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.setup-side { display: grid; gap: 22px; }
.need { border-left: 4px solid var(--sky); padding-left: 18px; display: grid; gap: 10px; }
.need ul { display: grid; gap: 6px; font-size: 0.96rem; color: var(--ink-soft); }
.need li::before { content: "– "; color: var(--ink); }
.steps { counter-reset: step; display: grid; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 4px 12px;
  padding-block: 20px; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--mono); font-size: 1.05rem; font-weight: 500; color: var(--blue); padding-top: 3px;
}
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

/* Compliance calendar */
.monthly { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.due { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sky); }
.due-day { grid-row: span 2; color: var(--blue); font-family: var(--display); font-weight: 850; font-stretch: 112%; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.due p { color: var(--ink-soft); font-size: 0.94rem; }
.ruler { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: 1.5px solid var(--blue); margin-bottom: 4px; }
.ruler li {
  padding: 9px 0; text-align: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); border-right: 1px solid var(--line);
}
.ruler li:last-child { border-right: 0; }
.ruler li.on { background: var(--sky); color: var(--on-sky); font-weight: 500; }
.annual { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 36px); }
.annual li { display: grid; align-content: start; gap: 6px; padding-block: 20px; }
.annual .when { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.annual p { color: var(--ink-soft); font-size: 0.94rem; }
.fine { margin-top: 20px; font-size: 0.85rem; color: var(--ink-soft); max-width: 75ch; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-copy { display: grid; gap: 18px; }
.about-copy p { max-width: 58ch; }
.points { display: grid; gap: 0; }
.points li { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points p { color: var(--ink-soft); font-size: 0.96rem; }

/* Certificate */
.cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cert .sec-head { margin-bottom: 0; justify-items: start; }
.cert-page { border: 2px solid var(--sky); background: #FFFFFF; line-height: 0; }
.cert-page img { display: block; width: 100%; height: auto; }
.cert-more { margin-top: 32px; }
.cert-more summary { cursor: pointer; font-weight: 600; color: var(--blue); width: fit-content; }
.cert-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }

/* Contact band */
.contact { background: var(--band); color: var(--on-band); border-top: 4px solid var(--sky); }
.contact h2 { color: var(--on-band); }
.contact .eyebrow { color: var(--blue); }
.contact .lede { color: var(--on-band-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-band-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--on-band);
  background: transparent;
  border: 1px solid var(--band-line); border-radius: 2px;
  padding: 12px 14px;
}
.field select option { color: #0B1F33; background: #FFFFFF; }
.field textarea { min-height: 120px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.9rem; color: var(--blue); min-height: 1.5em; }
.details { display: grid; gap: 0; }
.details .row { display: grid; gap: 3px; padding-block: 16px; border-top: 1px solid var(--band-line); }
.details .row:last-child { border-bottom: 1px solid var(--band-line); }
.details dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-band-soft); }
.todo { color: var(--blue); font-family: var(--mono); font-size: 0.85rem; }

/* Footer */
.foot { background: var(--sky); color: var(--on-sky); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 24px; font-size: 0.84rem; }

@media (max-width: 900px) {
  .top { position: static; }
  body { padding-bottom: 64px; }
  .mbar {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    position: fixed; inset: auto 0 0 0; z-index: 20;
    background: var(--paper); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mbar a { display: grid; justify-items: center; gap: 3px; padding: 10px 6px; font-size: 0.8rem; font-weight: 600; line-height: 1.2; text-align: center; color: var(--blue); text-decoration: none; }
  .mbar a:last-child { background: var(--sky); color: var(--on-sky); }
  .hero .wrap, .setup, .about, .contact-grid, .cert, .cert-pages { grid-template-columns: minmax(0, 1fr); }
  .services, .annual, .fee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services, .annual, .monthly, .fee-grid { grid-template-columns: minmax(0, 1fr); }
  .ruler li { font-size: 0.56rem; letter-spacing: 0; }
  .steps li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .nav { gap: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
