/* Freelance site
   Light, spacious, system-font layout in the spirit of Apple's product pages. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --cta: #0071e3;
  --cta-ink: #ffffff;
  --bubble: #f2f2f7;
  --ok: #30a46c;
  --header-bg: rgba(255, 255, 255, 0.8);
  --shadow: rgba(0, 0, 0, 0.18);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: var(--font-body);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 5rem);

  --gutter: 24px;
  --maxw: 1080px;
  --radius: 22px;
}

html[lang="zh-Hans"] {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}
html[lang^="zh"] body { line-height: 1.85; }

@media (max-width: 600px) {
  :root { --gutter: 18px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang^="zh"] body { line-height: 1.85; }

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
html[lang^="zh"] h1 { line-height: 1.2; letter-spacing: 0; }
html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--surface);
}
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.lang:hover { border-color: var(--ink); }

@media (max-width: 860px) {
  .nav {
    order: 3;
    width: calc(100% + 12px);
    margin: -6px;
    padding: 6px;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-actions { margin-left: auto; }
}

@media (max-width: 440px) {
  .brand-sub { display: none; }
  .hero .eyebrow .alt { flex-basis: 100%; }
  .hero .eyebrow .alt::before { content: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }

/* ---------- Shared section pieces ---------- */

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .alt { color: var(--muted); letter-spacing: 0.04em; text-transform: none; }
.eyebrow .alt::before { content: "/"; margin-right: 10px; }

.section {
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-intro { color: var(--muted); font-size: var(--step-1); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-lede { max-width: 36em; font-size: var(--step-1); color: var(--muted); }

.mark {
  padding-inline: 0.06em;
  background: linear-gradient(to bottom, transparent 56%, var(--marker) 56%, var(--marker) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-proof {
  max-width: 40em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.hero-proof strong {
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Chat demo ---------- */

.chat {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 28px 56px -32px var(--shadow);
}
@media (max-width: 900px) {
  .chat { justify-self: start; }
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
}
.chat-head strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.chat-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
}
.msg {
  max-width: 86%;
  padding: 9px 14px 10px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.msg-customer {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
}
.msg-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--bubble);
  color: var(--ink);
}
.msg-lang {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.chat-input {
  margin: 0 18px 16px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
}

.chat figcaption {
  padding: 12px 18px 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Who it's for ---------- */

.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.audience {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}
.audience p { color: var(--muted); }

@media (max-width: 820px) {
  .audiences { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Services ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px 40px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--step-2); }
.service-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.ticks {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 900px) {
  .service { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Why me ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
}
.reason { display: grid; align-content: start; gap: 10px; }
.reason p { max-width: 34em; color: var(--muted); }

@media (max-width: 760px) {
  .reasons { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 22px 26px;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
}
.offer p { max-width: 46em; }
.offer strong { font-family: var(--font-display); }

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.step p { font-size: 0.95rem; color: var(--muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Rate sheet ---------- */

.ratesheet {
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ratesheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rates { margin: 0; padding: 0; list-style: none; }
.rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 32px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.rate p { max-width: 40em; margin-top: 4px; font-size: 0.95rem; color: var(--muted); }
.rate .rate-price {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.rate-price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ratesheet-note { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 600px) {
  .rate { grid-template-columns: minmax(0, 1fr); }
  .rate .rate-price { text-align: left; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.about-text { display: grid; gap: 18px; max-width: 36em; font-size: var(--step-1); }
.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  padding-top: 0.3em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; }

@media (max-width: 820px) {
  .about { grid-template-columns: minmax(0, 1fr); }
}

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

.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  list-style: none;
  cursor: pointer;
  font-size: var(--step-1);
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 44em; padding-bottom: 22px; color: var(--muted); }

/* ---------- Contact ---------- */

.contact {
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--band);
  color: var(--band-ink);
}
.contact .eyebrow { color: var(--cta); }
.contact .eyebrow .alt { color: var(--band-muted); }
.contact :focus-visible { outline-color: var(--cta); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.contact-copy { display: grid; justify-items: start; gap: 18px; }
.contact-lede { max-width: 30em; font-size: var(--step-1); color: var(--band-muted); }
.contact .btn-cta { margin-top: 8px; }

.channels { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--band-line); }
.channel {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--band-line);
}
.channel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.channel-value { font-weight: 500; overflow-wrap: anywhere; }

.copy {
  padding: 6px 12px;
  border: 1px solid var(--band-muted);
  border-radius: 999px;
  background: transparent;
  color: var(--band-ink);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.copy:hover { border-color: var(--band-ink); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer { padding-block: 28px; font-size: 0.85rem; color: var(--muted); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-inner a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ---------- Apple-style overrides ---------- */

h1 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-weight: 700; letter-spacing: -0.028em; }
h3 { font-weight: 600; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: -0.01em; }

.site-header { border-bottom: 1px solid rgba(0, 0, 0, 0.08); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.brand { font-weight: 600; font-size: 1.15rem; }
.brand-sub { font-family: var(--font-body); font-size: 0.78rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.nav a { font-size: 0.88rem; font-weight: 400; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang { border: 0; padding: 6px 8px; font-weight: 400; color: var(--muted); }
.lang:hover { color: var(--ink); }

.btn { font-weight: 500; min-height: 46px; padding: 0 26px; }
.btn:hover { transform: none; background: #0077ed; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: rgba(0, 113, 227, 0.08); }
.btn-small { min-height: 34px; padding: 0 16px; font-size: 0.85rem; }

.eyebrow { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.eyebrow .alt::before { content: "·"; }

.section { border-top: 0; }
.section:nth-of-type(even) { background: var(--alt); }
.section-head { max-width: 40rem; margin-inline: auto; text-align: center; justify-items: center; }
.section-head .eyebrow { justify-content: center; }
.section-intro { color: var(--muted); font-size: var(--step-1); }

/* Hero: centred, chat demo below */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 96px); text-align: center; }
.hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); }
.hero-copy { justify-items: center; }
.hero-copy .eyebrow { justify-content: center; }
.hero-lede { margin-inline: auto; }
.hero-actions { justify-content: center; }
.mark { background: none; padding: 0; color: var(--muted); }
.hero-proof { border-top: 0; padding-top: 0; margin-inline: auto; }
.hero-proof strong { font-family: var(--font-body); font-size: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; }
.chat { justify-self: center; text-align: left; border: 0; box-shadow: 0 24px 60px -24px var(--shadow); }
@media (max-width: 900px) { .chat { justify-self: center; } }
.chat-head, .chat figcaption { border-color: rgba(0, 0, 0, 0.08); }
.chat figcaption { border-top-style: solid; }
.msg-lang, .rate-price small, .service-meta, .facts dt, .channel-label, .ratesheet-head, .step::before { font-family: var(--font-body); }

/* Cards instead of rules */
.audience { padding: 28px; border: 0; border-radius: var(--radius); background: var(--alt); }
.section:nth-of-type(even) .audience { background: var(--surface); }
.service { padding-block: 36px; }
.service-meta { font-size: 0.85rem; }
.step { padding: 24px; border: 0; border-radius: var(--radius); background: var(--surface); }
.section:nth-of-type(odd) .step { background: var(--alt); }
.offer { border: 0; background: var(--alt); border-radius: var(--radius); padding: 28px 32px; }
.section:nth-of-type(even) .offer { background: var(--surface); }
.ratesheet { border: 0; background: var(--surface); box-shadow: 0 8px 40px -20px var(--shadow); }
.ratesheet-head { border-bottom: 1px solid var(--line); font-size: 0.78rem; letter-spacing: 0.04em; }
.facts div { grid-template-columns: 8em minmax(0, 1fr); }
.facts dt { font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
.audience { border-top: 0; }

.faq { margin-inline: auto; }

/* Contact: light, not a dark band */
.contact { background: var(--alt); color: var(--ink); }
.contact .eyebrow, .contact .eyebrow .alt { color: var(--muted); }
.contact-lede { color: var(--muted); }
.contact .btn-cta { background: var(--accent); color: var(--accent-ink); }
.contact :focus-visible { outline-color: var(--accent); }
.channels { border-top-color: var(--line); }
.channel { border-bottom-color: var(--line); }
.channel-label { font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.copy { border-color: var(--line); color: var(--accent); background: var(--surface); }
.copy:hover { border-color: var(--accent); }

.site-footer { background: var(--alt); border-top: 1px solid var(--line); }

/* ---------- Slim layout ---------- */
.audience-line { color: var(--muted); font-size: 0.95rem; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { display: grid; align-content: start; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 32px; border: 0; border-radius: var(--radius); background: var(--surface); }
.service:last-child { border-bottom: 0; }
.service h3 { font-size: var(--step-1); }
.service-meta { margin-top: 0; color: var(--accent); }
.service p:last-child { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .services { grid-template-columns: minmax(0, 1fr); } }
.offer { margin-top: 24px; }
.about { align-items: center; }
.about-text { font-size: var(--step-0); }
.faq.privacy { margin-top: 40px; }
.about + .wrap .faq { margin-top: 40px; }
.about + .wrap .faq summary { font-size: var(--step-0); }
.process-line { color: var(--muted); font-size: 0.95rem; }
.contact { background: var(--bg); border-top: 1px solid var(--line); }
.about + .wrap .faq { max-width: none; }
.charity-note { margin-top: 16px; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* ---------- Diagrams ---------- */
.diagrams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.diagram { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--alt); }
.diagram svg { display: block; width: 100%; height: auto; font-family: inherit; font-size: 14px; }
.diagram figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.diagram text { fill: var(--ink); }
.dg-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.dg-warn { stroke: #d9822b; stroke-width: 2; }
.dg-acc { fill: var(--accent); stroke: var(--accent); }
.dg-acc + text, .dg-hubtext { fill: #fff; font-weight: 600; }
.dg-line { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.dg-head { fill: var(--muted); }
.dg-hub { fill: var(--accent); }
.dg-label { fill: var(--muted); font-size: 12px; font-weight: 600; }
.diagram .dg-label-acc { fill: var(--accent); }
@media (max-width: 820px) { .diagrams { grid-template-columns: minmax(0, 1fr); } }
.diagram .dg-hubtext { fill: #fff; font-weight: 600; }

/* ---------- Contact form ---------- */
.contact-side { display: grid; gap: 28px; }
.cform { display: grid; gap: 14px; padding: 28px; scroll-margin-top: 84px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 40px -20px var(--shadow); }
.cform[hidden] { display: none; }
.cform label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.cform input, .cform select, .cform textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.cform textarea { resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(0, 113, 227, 0.35); border-color: var(--accent); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform .btn { justify-self: start; }
.cform-status { min-height: 1.3em; font-size: 0.9rem; color: var(--ink); }
.cform-note { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================
   Ledger identity (2026-10-25). Overrides the tokens above.
   White paper, ruled lines, ink-stamp statuses; light only.
   ========================================================== */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-latin-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("fonts/plex-sans-condensed-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("fonts/plex-sans-condensed-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --alt: #f4f6f8;
  --surface: #ffffff;
  --ink: #1b1d21;
  --muted: #5f6670;
  --line: #dde3ea;
  --line-strong: #b9c4d1;
  --accent: #244b7a;
  --accent-hover: #1b3a60;
  --accent-ink: #ffffff;
  --cta: #244b7a;
  --cta-ink: #ffffff;
  --stamp: #c4362b;
  --stamp-soft: #fbeceb;
  --shadow: rgba(27, 29, 33, 0.12);
  --radius: 8px;
  --header-bg: rgba(255, 255, 255, 0.92);
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  --font-body: "IBM Plex Sans", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html[lang="zh-Hans"] {
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-body: "IBM Plex Sans", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { font-family: var(--font-body); letter-spacing: 0; }

.btn { background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600; }
.btn:hover { background: var(--accent-hover); transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: var(--alt); border-color: var(--ink); }
.site-header { border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); font-weight: 700; }
.nav a { color: var(--muted); }
.lang { color: var(--muted); }
.section:nth-of-type(even) { background: transparent; }
.section-head { text-align: left; justify-items: start; margin-inline: 0; }
.section-head .eyebrow { justify-content: flex-start; }

/* Hero */
.l-hero { display: grid; gap: 16px; padding-block: clamp(40px, 7vw, 88px) 28px; }
.l-hero > * { max-width: 48rem; }
.l-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); font-weight: 700; line-height: 1.02; }
html[lang^="zh"] .l-hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); line-height: 1.2; font-weight: 800; }
.l-alt { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem); font-weight: 700; line-height: 1.35; color: var(--muted); }
[lang="en"].l-alt { font-family: var(--font-display); font-weight: 600; }
.l-lede { color: var(--muted); max-width: 36em; }
.l-creds { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.l-creds b { color: var(--ink); font-weight: 600; }
.l-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* What do you type twice */
.l-work { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: 28px clamp(56px, 8vw, 104px); }
.l-ask h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; line-height: 1.12; }
.l-ask h2 .l-alt { display: block; margin-top: 6px; font-size: 0.78em; }
.l-ask > p { margin-top: 14px; color: var(--muted); }
.l-chips { display: grid; gap: 8px; margin-top: 20px; }
.l-chip { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: 500 1rem var(--font-body); text-align: left; cursor: pointer; }
.l-sub { color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.l-chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }

.l-ledger { min-width: 0; }
.l-stepbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.l-step { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--muted); font: 500 0.88rem var(--font-body); cursor: pointer; }
.l-step[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.l-play { margin-left: auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); font: 600 0.88rem var(--font-body); cursor: pointer; }
.l-play:hover { background: var(--accent); color: #fff; }
.l-sheet { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); overflow: hidden; }
.l-file { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--alt); border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.l-totals { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.l-totals div { padding: 12px 14px; border-right: 1px solid var(--line); }
.l-totals div:last-child { border-right: 0; }
.l-totals b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.l-totals span { font-size: 0.76rem; color: var(--muted); }
.l-rows { list-style: none; margin: 0; padding: 0; }
.l-row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) 7.2em 10.5em; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.78rem; }
.l-row:last-child { border-bottom: 0; }
.l-row > span { min-width: 0; padding: 8px 10px; border-right: 1px solid var(--line); overflow-wrap: anywhere; }
.l-row > span:last-child { border-right: 0; }
.l-head { background: var(--alt); color: var(--muted); font-weight: 600; }
.l-num { text-align: right; font-variant-numeric: tabular-nums; }
.l-messy { text-decoration: underline wavy var(--stamp); text-underline-offset: 3px; }
.l-dup { background: var(--stamp-soft); }
.l-tbc { color: var(--stamp); }
.l-sheet[data-step="2"] .l-totals { display: grid; }
.l-sheet[data-step="2"] .l-row { font-family: var(--font-body); font-size: 0.88rem; min-height: 54px; }
.l-sheet[data-step="2"] .l-row > span { border-right-color: transparent; }
.l-sheet[data-step="2"] .l-head { min-height: 34px; font-size: 0.74rem; letter-spacing: 0.04em; }
.l-who { font-weight: 600; }
.l-stamp { display: inline-block; padding: 1px 8px; border: 2px solid currentColor; border-radius: 4px; font: 700 0.72rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-3deg); }
.l-s-paid { color: var(--stamp); }
.l-s-sent { color: var(--accent); }
.l-s-todo { color: var(--muted); border-style: dashed; transform: none; }
.l-caption { margin-top: 12px; min-height: 3.2em; font-size: 0.92rem; color: var(--muted); }

/* Three ways in */
.l-services { padding-block: clamp(56px, 8vw, 104px); background: var(--alt); }
.l-services-inner { display: block; }
.l-services h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; }
.l-routes { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.l-routes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding-block: 20px; border-bottom: 1px solid var(--line-strong); }
.l-routes h3 { font-size: 1.3rem; font-weight: 700; }
.l-routes h3 .l-sub { display: block; font-size: 0.92rem; }
.l-routes p { grid-column: 1; color: var(--muted); max-width: 36em; }
.l-price { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-weight: 600; white-space: nowrap; }

/* Existing sections, restyled to match */
#pricing { background: var(--bg); }
.ratesheet { border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: none; }
.ratesheet-head { border-bottom: 1px solid var(--line-strong); }
.offer { background: var(--alt); border-radius: 6px; }
#about { background: var(--alt); }
.contact { background: var(--bg); border-top: 1px solid var(--line); }
.contact h2 .l-alt { display: block; margin-top: 8px; font-size: 0.6em; }
.cform { border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: none; }
.cform input, .cform select, .cform textarea { border-radius: 6px; border-color: var(--line-strong); }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline-color: rgba(44, 74, 122, 0.3); border-color: var(--accent); }
.copy { color: var(--ink); }
.site-footer { background: var(--alt); }

@media (max-width: 860px) {
  .l-work { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .l-row { grid-template-columns: 4.4em minmax(0, 1fr) 5.6em 7.4em; font-size: 0.7rem; }
  .l-row > span { padding: 7px 6px; }
  .l-sheet[data-step="2"] .l-row { font-size: 0.8rem; }
  .l-stamp { font-size: 0.6rem; padding: 1px 5px; }
  .l-play { margin-left: 0; }
  .l-routes li { grid-template-columns: minmax(0, 1fr); }
  .l-price { grid-column: 1; grid-row: auto; }
}

/* ---------- Service pages ---------- */
.s-page { display: grid; gap: 22px; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); max-width: 860px; }
.s-crumbs { font-size: 0.85rem; color: var(--muted); }
.s-crumbs a { color: var(--muted); }
.s-page h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 700; line-height: 1.05; }
html[lang^="zh"] .s-page h1 { line-height: 1.25; font-weight: 800; }
.s-intro { font-size: var(--step-1); color: var(--muted); max-width: 38em; }
.s-price { justify-self: start; padding: 8px 14px; border: 1.5px solid var(--accent); border-radius: 6px; font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.s-block { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.s-block h2, .s-cta h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; }
.s-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.s-list li { position: relative; padding-left: 26px; }
.s-list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.s-note { color: var(--muted); font-size: 0.95rem; }
.s-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.s-steps li { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 6px; counter-increment: s; }
.s-steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.s-steps h3 { font-size: 1.1rem; font-weight: 700; }
.s-steps p { color: var(--muted); font-size: 0.95rem; }
.s-page .faq { margin-inline: 0; }
.s-page .faq summary { font-size: var(--step-0); }
.s-cta { display: grid; gap: 12px; justify-items: start; margin-top: 12px; padding: 28px; border-radius: 6px; background: var(--alt); }
.s-cta p { color: var(--muted); max-width: 36em; }
.s-others { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; font-size: 0.95rem; }
.s-others span { color: var(--muted); }
.s-others a { color: var(--ink); font-weight: 600; }
.l-routes h3 a { color: inherit; text-decoration: none; }
.l-routes h3 a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 600px) { .s-steps { grid-template-columns: minmax(0, 1fr); } }
