/* ==========================================================================
   SOCIALDATA LAB INC. — corporate website stylesheet
   100% original layout, styles and UI. No external fonts or frameworks.
   The homepage uses one locally stored, original AI-generated hero image.

   Direction (2026-10-29 light enterprise rebuild): white / warm-paper
   sections, ONE restrained deep-teal accent used for hairlines, eyebrow
   labels and a single highlight only. Sharp geometry (0-2px radii),
   oversized serif display type, strict 8px spacing scale, typographic
   hero — no illustration, no decoration, thin rules only. The footer
   alone keeps a restrained dark-ink close.
   Type: serif display headings (Georgia / Songti), system sans body.
   No framework: hand-written design-token CSS (no build step, no CDN).
   ========================================================================== */

:root {
  --paper: #FAF9F6;
  --surface: #FFFFFF;
  --paper-dim: #F1EFE9;
  --ink: #16191D;
  --ink-soft: #3A3F45;
  --muted: #6B7178;
  --line: #E3E1DC;
  --line-dark: #C9C6BF;
  --accent: #0F5257;
  --accent-dark: #0A3B3E;
  --accent-soft: #E3EDED;
  --accent-light: #8FC1C6;
  --dark: #16191D;
  --dark-soft: #C9CDD2;
  --radius: 2px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: Georgia, "Times New Roman", "Songti SC", "STSong",
    "SimSun", serif;
}

* { box-sizing: border-box; }

::selection { background: var(--accent-soft); color: var(--ink); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.lang-zh { line-height: 1.9; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

body.lang-zh h1,
body.lang-zh h2,
body.lang-zh h3 { letter-spacing: 0.01em; line-height: 1.28; }

h1 { font-size: clamp(2.6rem, 5.2vw, 4rem); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.container.narrow { width: min(780px, 92vw); }

/* -- Header: masthead, thick top rule, hairline base -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark { flex: 0 0 auto; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.main-nav { display: flex; align-items: center; gap: 1.5rem; }

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.main-nav a.nav-active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

.main-nav a.nav-cta {
  background: var(--ink);
  color: #FFFFFF !important;
  padding: 0.5rem 1.1rem;
  border-bottom: 2px solid var(--ink) !important;
}

.nav-cta:hover { background: var(--accent-dark); border-bottom-color: var(--accent-dark) !important; color: #FFFFFF !important; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

.lang-switch a { color: var(--muted); border-bottom: none; }
.lang-switch a:hover { border-bottom: none; }
.lang-current { font-weight: 700; color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link: hidden until focused, for keyboard users. */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--surface); color: var(--accent-dark); padding: 0.6rem 1rem; border: 1px solid var(--line-dark); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 0.5rem; }

/* -- Dateline bar: journal masthead line, scrolls away ----------------- */
.dateline { border-bottom: 1px solid var(--line); }

.dateline-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.lang-zh .dateline-inner { letter-spacing: 0.18em; }

/* -- Flash messages ---------------------------------------------------- */
.flash-wrap { padding-top: 1rem; }

.flash {
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0;
  border: 1px solid var(--line-dark);
  background: var(--surface);
}

.flash-success { border-color: var(--accent); background: var(--accent-soft); }
.flash-warning { border-color: var(--line-dark); background: var(--paper-dim); }

/* -- Hero: light, typographic, with a document card -------------------- */
.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero h1 { color: var(--ink); }
.hero .kicker { color: var(--accent); }
.hero .lede { color: var(--ink-soft); }
.hero .hero-note { color: var(--muted); }

.hero .btn-primary { background: var(--accent); color: #FFFFFF; }
.hero .btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }

.hero .btn-ghost { color: var(--ink); border-color: var(--ink); }
.hero .btn-ghost:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: stretch;
}

.hero-grid-single { grid-template-columns: minmax(0, 760px); }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

body.lang-zh .kicker { letter-spacing: 0.22em; }

.lede { font-size: 1.1rem; line-height: 1.8; color: var(--ink-soft); max-width: 62ch; }
body.lang-zh .lede { line-height: 1.95; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }

.hero-note { font-size: 0.92rem; color: var(--muted); }

/* Document preview card: a research brief cover, print-like, flat. */
.brief-doc {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--accent);
  padding: 1.5rem;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.doc-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.doc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.3; margin-bottom: 0.5rem; }
.doc-title a { color: var(--ink); text-decoration: none; }
.doc-title a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }

.doc-summary { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.7; }

.doc-foot { margin-top: auto; margin-bottom: 0; padding-top: 1rem; }

/* -- Buttons: rectangular, sharp --------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.4;
}

.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* -- Facts strip: ruled index ------------------------------------------ */
.facts-strip { border-bottom: 1px solid var(--line); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 1.5rem 0;
  align-items: stretch;
}

.fact { display: flex; flex-direction: column; padding: 0.25rem 1.5rem; border-left: 1px solid var(--line-dark); }
.fact:first-child { border-left: none; padding-left: 0; }

.fact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}

.fact-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.25rem 0 0;
  line-height: 1.5;
  min-height: 3em;
}

/* -- Sections: denser, ruled ------------------------------------------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--paper-dim); }

.section-head { max-width: 760px; margin-bottom: 2rem; }

.section-head h2 { margin-bottom: 0.4rem; }

.section-lede { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; max-width: 62ch; }

.section-index {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.section-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  white-space: nowrap;
}

.section-rule { flex: 1; height: 1px; background: var(--line-dark); }
.section-head .kicker { margin-bottom: 0.6rem; }

/* -- Cards: flat, ruled, no lift --------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.card-grid--two { grid-template-columns: repeat(2, 1fr); }
.card-grid--two > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .text-link { margin-top: auto; padding-top: 1rem; }

.card h3 { margin-top: 0; font-size: 1.25rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }

.card p { color: var(--ink-soft); font-size: 0.99rem; }

.card-date {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.center { text-align: center; margin-top: 2rem; }
.empty-note { color: var(--muted); font-size: 1.02rem; }

/* -- Service index: numbered ruled rows -------------------------------- */
.service-index { border-top: 1px solid var(--line-dark); }

.service-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-dark);
  line-height: 1.3;
}

.service-row h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.service-row h3 a { color: var(--ink); text-decoration: none; }
.service-row h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.service-row p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; max-width: 62ch; }
.service-row-link { white-space: nowrap; }

/* -- Steps: ruled, numerals, no cards ---------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line-dark);
  counter-reset: step;
}

.step { border-top: 2px solid var(--ink); padding-top: 1rem; }

.step-no {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.step h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; line-height: 1.7; }

/* -- Data sources ledger table ----------------------------------------- */
.ledger-wrap { overflow-x: auto; }

.ledger {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line-dark);
}

.ledger caption {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 0.6rem;
}

.ledger th,
.ledger td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
  font-size: 0.97rem;
}

.ledger thead th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
  padding: 0.75rem 1rem;
}

.ledger-group th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-dim);
  border-top: 1px solid var(--line-dark);
}

.page-note { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }

/* -- Pricing: flat, sharp ---------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line-dark);
  background: var(--surface);
}

.price-card {
  position: relative;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card:last-child { border-right: none; }

.price-featured { background: var(--accent-soft); color: var(--ink); border-top-color: var(--accent); }

.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.5rem;
}

.price-featured .plan-badge { color: var(--accent-dark); }

.plan-name { font-size: 1.25rem; margin-bottom: 0.3rem; }

.plan-desc { color: var(--muted); font-size: 0.93rem; line-height: 1.65; min-height: 3.3em; }
.price-featured .plan-desc { color: var(--ink-soft); }

.plan-price { margin: 1rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.price-featured .plan-price { border-top-color: var(--line-dark); }

.price-from {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-featured .price-from { color: var(--muted); }

.price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--ink);
}

.price-featured .price-value { color: var(--ink); }

.price-unit { color: var(--muted); font-size: 0.9rem; }
.price-featured .price-unit { color: var(--muted); }

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.5em;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.price-featured .plan-features li { color: var(--ink-soft); }

.plan-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.price-featured .plan-features li::before { color: var(--accent-dark); }

.plan-cta { display: block; text-align: center; }

.pricing-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.5rem 0 0;
  line-height: 1.7;
}

/* -- CTA band: light, ruled top and bottom ----------------------------- */
.cta-band { background: var(--surface); color: var(--ink); padding: 3rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }

.cta-inner { max-width: 720px; }

.cta-inner h2 { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-inner p { color: var(--ink-soft); }
.cta-band .btn-primary { background: var(--accent); color: #FFFFFF; }
.cta-band .btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }

/* -- Page hero / prose ------------------------------------------------- */
.page-hero { padding: 3rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }

.prose p { line-height: 1.85; }
body.lang-zh .prose p { line-height: 2; }

.prose h3 { margin-top: 2rem; }

.prose-article { font-size: 1.05rem; }

/* -- Name story -------------------------------------------------------- */
.name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.name-cell { border-top: 2px solid var(--ink); padding-top: 1rem; }

.name-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.name-cell p:last-child { color: var(--ink-soft); font-size: 0.97rem; }

/* -- Do / do-not ------------------------------------------------------- */
.do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-dark);
  background: var(--surface);
}

.do-col { padding: 1.5rem 1.5rem; }
.do-col + .do-col { border-left: 1px solid var(--line); }

.do-col ul { margin: 0; padding-left: 1.15em; }
.do-col li { margin-bottom: 0.5em; line-height: 1.7; }

.do-col h3 { border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.do-no h3 { color: var(--ink); }

.do-note { margin-top: 1.5rem; color: var(--ink-soft); }

/* -- Facts table ------------------------------------------------------- */
.facts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line-dark);
}

.facts-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0 0 0.5rem;
}

.facts-table th,
.facts-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}

.facts-table tr:first-child th,
.facts-table tr:first-child td { border-top: none; }

.facts-table th { width: 34%; color: var(--muted); font-weight: 600; }

/* -- Service detail / FAQ ---------------------------------------------- */
.service-detail h3 { margin-top: 1.5rem; }

.check-list { margin: 0; padding-left: 1.15em; }
.check-list li { margin-bottom: 0.55em; line-height: 1.75; }
.check-list li::marker { color: var(--accent-dark); }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
  line-height: 1.5;
}

.faq details p { margin: 0.75rem 0 0.25rem; color: var(--ink-soft); }

/* -- Contact ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form .field { margin-bottom: 1rem; }

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.contact-form .errorlist {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  color: #8C2F1B;
  font-size: 0.9rem;
}

.form-note { color: var(--muted); font-size: 0.9rem; margin: 1rem 0 0; }

.contact-line {
  line-height: 1.6;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.contact-line:last-of-type { border-bottom: none; }

.next-steps { margin: 0; padding-left: 1.3em; }
.next-steps li { margin-bottom: 0.6em; line-height: 1.7; }
.next-steps li::marker { color: var(--accent-dark); font-weight: 700; }

.contact-note { color: var(--muted); font-size: 0.94rem; margin-top: 1.5rem; }

/* -- Insights ---------------------------------------------------------- */
.brief-list { border-top: 1px solid var(--line-dark); }

.brief-row {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.brief-row h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.brief-row h2 a { color: var(--ink); text-decoration: none; }
.brief-row h2 a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.brief-row p { color: var(--ink-soft); }

.brief-date {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.brief-feature {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  border-bottom: 1px solid var(--line-dark);
  margin: 1.5rem 0;
}

.brief-feature:first-child { margin-top: 0; }

.brief-feature h2 a { color: var(--ink); }
.brief-feature h2 a:hover { color: var(--accent-dark); }
.brief-feature p { color: var(--ink-soft); }
.brief-feature .text-link { color: var(--accent-dark); }
.brief-feature .text-link:hover { color: var(--accent); }
.brief-feature .brief-date { color: var(--accent-dark); }

.pagination {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  color: var(--muted);
}

.back-link { margin-top: 2rem; }

/* -- Feature brief on home: light, ruled -------------------------------- */
.feature-brief {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.feature-brief-body { min-width: 0; display: flex; flex-direction: column; }
.feature-brief-body .text-link { margin-top: auto; padding-top: 1rem; }

.feature-brief-side {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-brief-side .side-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.5rem; color: var(--ink); }
.feature-brief-side .side-cta { margin-top: auto; margin-bottom: 0; padding-top: 1rem; }


.feature-brief .card-date { color: var(--accent-dark); }
.feature-brief h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.28; }
.feature-brief h3 a { color: var(--ink); text-decoration: none; }
.feature-brief h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.feature-brief p { color: var(--ink-soft); font-size: 1.02rem; max-width: 78ch; }
.feature-brief .text-link { color: var(--accent-dark); }
.feature-brief .text-link:hover { color: var(--accent); }

/* -- Article pages: document feel --------------------------------------- */
.article-hero { padding-bottom: 0.5rem; }
.article-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  max-width: 22ch;
}
.article-hero .lede { font-size: 1.15rem; }

.article-hero::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--line-dark);
  margin-top: 2rem;
}
body.lang-en .prose-article > p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding-right: 0.14em;
  padding-top: 0.06em;
  color: var(--ink);
}

/* -- Footer: dark close, teal rule + colophon -------------------------- */
.site-footer {
  border-top: 2px solid var(--accent);
  padding: 2.5rem 0 1.5rem;
  background: var(--dark);
  color: var(--dark-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.footer-desc { color: var(--dark-soft); font-size: 0.95rem; }
.footer-note { color: #9AA0A6; font-size: 0.9rem; }

.footer-heading {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.footer-col a { display: block; margin-bottom: 0.4rem; text-decoration: none; color: var(--dark-soft); }
.footer-col a:hover { color: var(--accent-light); text-decoration: underline; }

.footer-line {
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--dark-soft);
}

.footer-line:last-child { border-bottom: none; }

.site-footer a { color: #E8EAEC; }
.site-footer a:hover { color: var(--accent-light); }

/* Colophon: closing rule + one line on the record base. */
.colophon-row {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-top: 2rem;
  padding-top: 1rem;
}

.colophon-row p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-top: 1rem;
  padding-top: 1rem;
  color: #9AA0A6;
  font-size: 0.87rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: space-between;
}

.footer-bottom p { margin: 0; }


/* -- Question-led service rows ------------------------------------------ */
.service-question {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

body.lang-zh .service-question { letter-spacing: 0.18em; }

/* -- Sample labels ------------------------------------------------------- */
.sample-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
}

.sample-note { color: var(--muted); font-size: 0.92rem; }

/* -- Deliverables block on service pages -------------------------------- */
.receive-block { margin-top: 1.5rem; }

/* -- Reveal: opacity only, no movement ---------------------------------- */
.anim .reveal { opacity: 0; transition: opacity 0.5s ease; }
.anim .reveal.visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
}

/* -- Responsive -------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line-dark);
    padding: 1.1rem 4vw 1.4rem;
  }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .brand { margin-right: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-brief { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-brief-side { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card:nth-child(2) { border-right: none; }
  .price-card:nth-child(1),
  .price-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .card-grid, .steps, .pricing-grid, .name-grid, .do-grid { grid-template-columns: 1fr; }
  .price-card { border-right: none; border-bottom: 1px solid var(--line); }
  .price-card:last-child { border-bottom: none; }
  .do-col + .do-col { border-left: none; border-top: 1px solid var(--line); }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.3rem 0; }
  .hero { padding: 2.4rem 0 2rem; }
  .service-row { grid-template-columns: 2.4rem 1fr; }
  .service-row-link { grid-column: 2; }
  /* Ledger: drop the desktop min-width so both columns fit the viewport. */
  .ledger { min-width: 0; }
  .ledger th, .ledger td { padding: 0.5rem 0.75rem; font-size: 0.86rem; }
}

@media (min-width: 1500px) {
  .container { width: min(1240px, 92vw); }
  .container.narrow { width: min(860px, 92vw); }
}
