/* plex: self-hosted from Google Fonts, SIL Open Font License 1.1. Regenerate: python3 site/assets.py fonts */
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/64d42499a463757b.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/035f1b5c566efbbf.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/264226c2a81f4266.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/1969f6ffdbf59ace.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/e2661bcc0d77ef31.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/da78b4b316e6b46e.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/758b9f95f75a51bd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/baf63ee991d8c1f6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/93cfae71a503892e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/plex/0bc96cd0d5b0ad98.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/plex/a6dd227681259777.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/plex/0564cf0e90048ca2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/plex/92e63ec1067b6afa.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/plex/c73940f4fb37da13.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/plex/632855d1d7aa5144.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/plex/868a235a9c8b5021.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LetKite marketing site — static styles, no JS required. */

/* Arial/Helvetica scaled to IBM Plex Sans metrics (measured with site/assets.py fonts), so text keeps
   its size and line breaks when the web font arrives: no layout shift on slow connections. */
@font-face { font-family: 'Plex Sans Fallback'; font-weight: 100 500; src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 101.33%; ascent-override: 101.16%; descent-override: 27.14%; line-gap-override: 0%; }
@font-face { font-family: 'Plex Sans Fallback'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Liberation Sans Bold');
  size-adjust: 98.41%; ascent-override: 104.16%; descent-override: 27.94%; line-gap-override: 0%; }

:root {
  --ink: #0B1A33;
  --ink-2: #3A4556;
  --muted: #52607A;
  --line: #D5DEE8;
  --line-soft: #E1E7EF;
  --bg: #F5F7FA;
  --bg-2: #E8EEF5;
  --surface: #FFFFFF;
  --brand: #0E358C;
  --brand-2: #1C79BE;
  --teal: #0B7C90;
  --teal-bright: #08A0B9;
  --mint: #A8EDC3;
  --mint-bg: #EFFAF4;
  --tint: #F1F8FB;
  --dark: #0B1A33;
  --dark-card: #12244A;
  --dark-line: #22386A;
  --dark-text: #B8C5DA;
  --dark-accent: #6CD8BE;
  --radius: 16px;
  --gutter: 80px;
  --max: 1440px;
  --font: 'IBM Plex Sans', 'Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-zh: 'Noto Sans SC', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
html[lang="zh-CN"] body { font-family: var(--font-zh); }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--teal); }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--dark); color: #F5F7FA; }
.section--band { background: var(--bg-2); }
.section--white { background: var(--surface); border-top: 1px solid var(--line); }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--teal); text-transform: uppercase; }
html[lang="zh-CN"] .eyebrow { font-family: var(--font-zh); letter-spacing: 2px; text-transform: none; }
.section--dark .eyebrow { color: var(--dark-accent); }
.h1 { font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.025em; }
.h2 { font-weight: 700; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.02em; }
.h2--sm { font-size: clamp(28px, 3vw, 44px); }
html[lang="zh-CN"] .h1, html[lang="zh-CN"] .h2 { line-height: 1.22; letter-spacing: 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.6; color: var(--muted); }
.section--dark .lead, .section--dark .body { color: var(--dark-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; font-family: inherit; cursor: pointer; }
.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover { color: #FFFFFF; background: #0B2B73; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--light { background: #F5F7FA; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .container { display: flex; align-items: center; gap: 40px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand small { font-family: var(--font-zh); font-size: 16px; font-weight: 700; }
.nav { display: flex; gap: 28px; flex-grow: 1; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }

/* Hero */
.hero .container { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 56px; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.diagram { width: 100%; height: auto; }

/* Proof strip */
.strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 24px; padding-bottom: 24px; }
.strip strong { display: block; font-size: 16px; font-weight: 600; }
.strip span { font-size: 14px; color: var(--muted); }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 72px; align-items: center; }
.split--narrow { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-head > p { max-width: 460px; }

/* Layer diagram */
.layers { display: flex; flex-direction: column; gap: 14px; }
.layer { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 24px; min-height: 104px; padding: 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.layer__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.layer__name { font-size: 20px; font-weight: 600; }
.layer__role { font-size: 15px; color: var(--muted); }
.layer--core { min-height: 120px; background: var(--dark); border-color: var(--dark); color: #F5F7FA; }
.layer--core .layer__tag { color: var(--dark-accent); }
.layer--core .layer__role { color: var(--dark-text); }
.layer--core .layer__name { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.layer--core .layer__name img { width: 40px; height: 40px; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card-dark { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.card-dark h3 { font-size: 24px; font-weight: 600; }
.card-dark p { font-size: 16px; line-height: 1.6; color: var(--dark-text); }
.feature h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }

/* Plans */
.plan { border: 1.5px solid var(--line); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.plan--pro { border-color: var(--brand); background: var(--mint-bg); }
.plan__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.plan__title h3 { font-size: 28px; font-weight: 700; }
.plan__title span { font-size: 15px; color: var(--muted); }
.plan--pro .plan__title span { color: var(--brand); }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.plan > .btn, .plan form { margin-top: auto; }
.waitlist { display: flex; flex-direction: column; gap: 10px; }
.waitlist label { font-size: 14px; font-weight: 600; }
.waitlist__row { display: flex; gap: 10px; }
.waitlist input[type="email"] { flex-grow: 1; min-height: 52px; padding: 0 16px; border: 1.5px solid #8494AA; border-radius: 12px; font: inherit; font-size: 16px; background: #FFFFFF; }
.waitlist fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-2); }
.waitlist legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.waitlist fieldset label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }

/* FAQ */
.faq { display: grid; grid-template-columns: 320px 1fr; gap: 80px; }
.faq h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.faq p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 56px 0; }
.site-footer .row { display: flex; align-items: center; flex-wrap: wrap; gap: 32px 48px; margin-bottom: 28px; font-size: 15px; }
.site-footer .brand { color: #F5F7FA; flex-grow: 1; font-size: 24px; }
.site-footer .brand img { width: 32px; height: 32px; }
.site-footer a { color: #F5F7FA; text-decoration: none; }
.site-footer p { font-size: 13px; line-height: 1.6; max-width: 900px; }

/* Compare page */
.compare-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; padding: 72px 0 40px; }
.compare-intro p { max-width: 460px; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.compare col.c-label { width: 30%; }
.compare thead th { vertical-align: top; text-align: left; padding: 24px 16px; font-weight: 400; background: var(--bg); border-bottom: 1px solid var(--line); }
.compare thead th:first-child { background: var(--bg); }
.compare .plan-name { display: block; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.compare .plan-sub { display: block; font-size: 14px; color: var(--muted); }
.compare thead .btn { margin-top: 16px; width: 100%; }
.compare thead th.is-pro { background: var(--dark); color: #F5F7FA; border-radius: 16px 16px 0 0; }
.compare thead th.is-pro .plan-sub { color: var(--dark-text); }
.badge { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--mint); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.compare tbody th[scope="row"] { text-align: left; font-weight: 500; padding: 16px 20px; }
.compare td { padding: 16px; color: var(--ink-2); vertical-align: middle; }
.compare tbody tr { border-top: 1px solid var(--line-soft); }
.compare td.is-pro { background: var(--tint); }
.compare tr.group th { padding: 28px 20px 8px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--teal); text-align: left; }
.compare tr.group { border-top: 0; }
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark::before { content: ""; flex-shrink: 0; }
.mark--yes::before { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); }
.mark--part::before { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal); background: linear-gradient(90deg, var(--teal) 50%, transparent 50%); }
.mark--no { color: #6A7890; }
.mark--no::before { width: 14px; height: 2px; background: #8494AA; }
.legend { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 24px; font-size: 13px; color: var(--muted); }
.compare-cta { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 64px; padding: 56px 0 96px; }

/* Screen-reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero .container, .split, .split--narrow { grid-template-columns: 1fr; }
  .strip .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .site-header .container { justify-content: space-between; gap: 16px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 48px 0; }
  .hero .container { padding-top: 40px; }
  .strip .container { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .layer { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; min-height: 0; }
  .card-dark, .plan { padding: 22px; }
  .waitlist__row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .site-header .btn { display: none; }
  .compare-intro { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 40px; }
  .compare-cta { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Production additions (not in the design handoff) ---- */

/* Mobile menu: shown below 1100px, where the primary nav is hidden. No JS: <details>. */
.menu { display: none; position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--ink); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; padding: 8px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(11, 26, 51, 0.12); }
.menu__panel a { padding: 12px 14px; border-radius: 8px; font-size: 16px; font-weight: 500; text-decoration: none; }
.menu__panel a:hover { background: var(--bg); }
.menu__panel a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.menu__panel .menu__cta { margin-top: 6px; background: var(--brand); color: #FFFFFF; text-align: center; font-weight: 600; }
.menu__panel .menu__cta:hover { background: #0B2B73; color: #FFFFFF; }

/* Waitlist spam trap: off-screen for people, still filled in by naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Thanks / 404 pages */
.status-page { padding: 120px 0 144px; }
.status-page .stack { max-width: 680px; gap: 24px; }

@media (max-width: 1100px) {
  .menu { display: block; }
  .site-header .container { justify-content: flex-start; }
  .site-header .brand { margin-right: auto; }
}
@media (max-width: 760px) {
  .status-page { padding: 64px 0 80px; }
}

/* ---- Site-wide layout from site/build.py ---- */

code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-2); padding: 1px 6px; border-radius: 5px; }
.section--dark code, .page-head--dark code { background: var(--dark-card); }

/* Header: dropdown for Solutions (links are in the HTML; CSS only reveals them) */
.site-header { position: relative; z-index: 10; }
.nav { align-items: center; }
.nav__group { position: relative; }
.nav__label { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.nav__group.is-active .nav__label { color: var(--brand); font-weight: 600; }
.nav__drop { display: none; position: absolute; left: -16px; top: 100%; min-width: 240px; padding: 16px 8px 8px; flex-direction: column; }
.nav__drop::before { content: ""; position: absolute; inset: 8px 0 0; z-index: -1; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(11, 26, 51, 0.12); }
.nav__drop a { padding: 10px 12px; border-radius: 8px; }
.nav__drop a:hover { background: var(--bg); }
.nav__group:hover .nav__drop, .nav__group:focus-within .nav__drop { display: flex; }
.menu__heading { padding: 10px 14px 2px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
html[lang="zh-CN"] .menu__heading { font-family: var(--font-zh); letter-spacing: 0; }
.menu__rule { height: 1px; margin: 6px 8px; background: var(--line); }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 20px 0 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #8494AA; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* Sub-page header */
.page-head { padding: 56px 0 64px; }
.page-head .container { display: flex; flex-direction: column; gap: 20px; }
.page-head .lead { max-width: 820px; }
.page-head--dark { margin-top: 20px; background: var(--dark); color: #F5F7FA; }
.page-head--dark .eyebrow { color: var(--dark-accent); }
.page-head--dark .lead { color: var(--dark-text); }
main > .crumbs + .page-head--dark { margin-top: 20px; }

.more { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.more a { color: var(--brand); }
.section--dark .more, .page-head--dark .more { color: var(--dark-text); }
.section--dark .more a { color: var(--dark-accent); }
.more--spaced { margin-top: 36px; }
.section-head a, .body a, .prose a, .small a, .faq a, .facts a { color: var(--brand); }

.panel-dark { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: 18px; padding: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; font-weight: 600; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--dark); color: #F5F7FA; font-family: var(--mono); font-size: 14px; }

.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.ticks strong { color: var(--ink); }
.ticks--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps > li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps > li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #FFFFFF; font-family: var(--mono); font-weight: 500; }
.steps h3 { font-size: 20px; font-weight: 600; }
.steps p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.steps--code { grid-template-columns: 1fr; max-width: 900px; }
pre.code { margin: 4px 0 0; padding: 16px 18px; overflow-x: auto; background: var(--dark); color: #E6ECF5; border-radius: 12px; font-size: 14px; line-height: 1.6; }
pre.code code { background: none; padding: 0; font-size: inherit; }

/* Long-form text */
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); }
.prose-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 360px); gap: 64px; align-items: start; justify-content: space-between; }
.aside-card { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.aside-card h3 { font-size: 20px; font-weight: 600; }
.aside-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

/* Pricing */
.plan__title h2 { font-size: 28px; font-weight: 700; }
.price { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.price small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.table-wrap { overflow-x: auto; }
.ptable { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.ptable th, .ptable td { padding: 14px 18px; text-align: left; vertical-align: top; color: var(--ink-2); }
.ptable thead th { background: var(--bg); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.ptable thead th.is-pro { background: var(--dark); color: #F5F7FA; }
.ptable tbody tr { border-top: 1px solid var(--line-soft); }
.ptable tbody th[scope="row"] { font-weight: 500; color: var(--ink); width: 34%; }
.ptable td.is-pro { background: var(--tint); }
.ptable tr.group th { padding-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
.ptable--wide tbody th[scope="row"] { width: 26%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #8494AA; border-radius: 12px; font: inherit; font-size: 16px; background: #FFFFFF; color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }

/* FAQ generated from site/pages.py */
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.qa h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.qa p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Footer */
.footer-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-h { margin-bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--dark-accent); }
html[lang="zh-CN"] .footer-h { font-family: var(--font-zh); letter-spacing: 1px; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols a:hover { color: var(--dark-accent); }
.site-footer .footer-legal { padding-top: 24px; border-top: 1px solid var(--dark-line); }

@media (max-width: 1280px) {
  .site-header .container { gap: 24px; }
  .nav { gap: 22px; }
}
@media (max-width: 1100px) {
  .prose-grid { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-head { padding: 36px 0 44px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .ticks--cols { grid-template-columns: 1fr; }
  .form__pair { grid-template-columns: 1fr; }
  .panel-dark { padding: 16px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 22px; }
}

/* 4.5:1 contrast for small teal labels on the grey band */
.section--band .eyebrow { color: #0A6A7A; }
