/* Remit 86 — alpha site styles
   ---------------------------------------------------------------------------
   PALETTE IS PROVISIONAL until the logo is designed. Every colour on the site
   comes from the tokens below: change the brand/accent groups to re-theme.
   Neutral foundation + one brand hue + one accent hue. Keep text contrast
   at WCAG AA or better when changing values.
   System font stacks only (no external requests). */

:root {
  /* Neutral foundation */
  --color-bg: #f7f6f3;
  --color-bg-alt: #efede8;
  --color-surface: #ffffff;
  --color-border: #dedad2;
  --color-border-strong: #c3bdb1;
  --color-text: #16191b;
  --color-text-muted: #474e53;
  --color-text-subtle: #626a70;

  /* Brand (provisional) */
  --color-brand: #1e4d5c;
  --color-brand-hover: #163c48;
  --color-brand-deep: #10303a;
  --color-brand-soft: #dcebee;
  --color-brand-tint: #eef5f6;
  --color-on-brand: #ffffff;
  --color-on-deep: #d6e5e9;
  --color-on-deep-muted: #a7c0c7;

  /* Accent (provisional) */
  --color-accent: #b4512a;
  --color-accent-soft: #f6e4da;

  /* Status */
  --color-danger: #a3261c;
  --color-danger-bg: #fdf0ee;
  --color-ph-bg: #fff1b8;
  --color-ph-text: #574000;
  --color-draft-bg: #fde9c8;
  --color-draft-text: #6d3c00;

  /* Illustration (derived from the palette) */
  --illus-sky: var(--color-brand-tint);
  --illus-sun: var(--color-accent-soft);
  --illus-c1: var(--color-brand);
  --illus-c2: var(--color-accent);
  --illus-c3: #8aa9b1;
  --illus-c4: #d9b08c;
  --illus-steel: var(--color-brand-deep);
  --illus-water: #c9dde1;

  /* Type & shape */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: var(--font-sans);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgb(22 25 27 / 0.05), 0 10px 30px -14px rgb(22 25 27 / 0.22);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body:lang(zh) { line-height: 1.8; }

img, svg { max-width: 100%; }
a { color: var(--color-brand); text-underline-offset: 3px; }
a:hover { color: var(--color-brand-hover); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--color-text); line-height: 1.18; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--color-brand-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Placeholders & review tags — easy to spot during review */
.ph { background: var(--color-ph-bg); color: var(--color-ph-text); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.92em; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.tag--draft { background: var(--color-draft-bg); color: var(--color-draft-text); }
.tag--ph { background: var(--color-ph-bg); color: var(--color-ph-text); }
.tag--inline { margin: 0 0 0 4px; vertical-align: 1px; }
.tag--internal { background: var(--color-text); color: var(--color-bg); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.planned { font-weight: 650; color: var(--color-text-muted); }

/* ---------------------------------------------------------------- Banner */
.alpha-banner { background: var(--color-brand-deep); color: var(--color-on-deep); font-size: 0.8125rem; line-height: 1.4; padding: 8px 0; text-align: center; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
/* Header gets a little more room than page content so longer labels
   (e.g. Spanish "Preguntas frecuentes") fit in full on common desktop widths. */
.site-header .container { max-width: 1440px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; margin: 0; white-space: nowrap; }
.wordmark:hover { color: var(--color-text); }
/* "Interlocking Markets" symbol (tightly cropped SVG). */
.wordmark-mark { display: block; flex: none; width: auto; height: 28px; }
.wordmark-mark--tile { height: 30px; margin: 0 2px 0 0; border-radius: 7px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav ul a { display: block; padding: 8px 7px; border-radius: 8px; color: var(--color-text-muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; white-space: nowrap; }
.primary-nav ul a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.primary-nav ul a[aria-current="page"] { color: var(--color-brand); background: var(--color-brand-soft); }
.nav-mobile-extra { display: none; }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-tools .btn { white-space: nowrap; }
.header-login { font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.header-login:hover, .header-login[aria-current] { color: var(--color-brand); text-decoration: underline; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); flex: none; }
.lang-switch a { min-width: 40px; min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; color: var(--color-text-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--color-text); background: var(--color-bg-alt); }
.lang-switch a[aria-current="true"] { background: var(--color-brand); color: var(--color-on-brand); }

.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 999px; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--color-text); cursor: pointer; }
.menu-icon { display: inline-grid; gap: 4px; width: 16px; }
.menu-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s; }
.nav-open .menu-icon span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-open .menu-icon span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Collapsed navigation. main.js adds .nav-collapsed to <html> whenever the
   full header does not fit (measured, so it works for every language and
   label length). An inline head script sets it early on narrow screens to
   avoid a flash. Without JavaScript, the nav wraps under the logo instead. */
.nav-collapsed .header-tools .header-cta, .nav-collapsed .header-tools .header-login { display: none; }
.nav-collapsed .menu-toggle { display: inline-flex; }
.nav-collapsed .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.nav-collapsed .nav-open .primary-nav { display: block; overscroll-behavior: contain; }
.nav-collapsed body.nav-open { overflow: hidden; }
.nav-collapsed .nav-open .site-header { background: var(--color-bg); backdrop-filter: none; }
.nav-collapsed body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgb(16 48 58 / 0.45); }
.nav-collapsed .primary-nav ul a:active { background: var(--color-bg-alt); }
.nav-collapsed .primary-nav ul { flex-direction: column; gap: 2px; padding-bottom: 8px; }
.nav-collapsed .primary-nav ul a { padding: 12px; font-size: 1.0625rem; }
.nav-collapsed .nav-mobile-extra { display: grid; gap: 10px; padding-top: 8px; }
.nav-mobile-extra .btn { width: 100%; }
@media (max-width: 1299px) {
  html:not(.js) .header-tools .header-cta, html:not(.js) .header-tools .header-login { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .primary-nav { order: 3; width: 100%; }
  html:not(.js) .primary-nav ul { flex-wrap: wrap; padding-bottom: 12px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 1.15rem; gap: 8px; }
  .wordmark-mark { height: 24px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle { width: 40px; padding: 0; justify-content: center; }
  .lang-switch a { min-width: 34px; padding: 0 7px; }
  .header-tools { gap: 8px; }
}

/* --------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: 0.975rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; text-align: center; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: var(--color-brand); color: var(--color-on-brand); }
.btn-primary:hover { background: var(--color-brand-hover); color: var(--color-on-brand); }
.btn-outline { border-color: var(--color-brand); color: var(--color-brand); background: transparent; }
.btn-outline:hover { background: var(--color-brand); color: var(--color-on-brand); }
.btn-light { background: var(--color-surface); color: var(--color-brand-deep); }
.btn-light:hover { background: var(--color-brand-tint); color: var(--color-brand-deep); }
.btn-outline-light { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.1); color: #fff; border-color: #fff; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-icon { flex: none; }
.btn-arrow { transition: transform 0.15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.text-link { font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link-row { margin: 28px 0 0; }

/* --------------------------------------------------------------- Type & sections */
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 14px; }
:lang(zh) .eyebrow { letter-spacing: 0.05em; }
.lead { font-size: 1.125rem; color: var(--color-text-muted); max-width: 64ch; }
.lead--lg { font-size: clamp(1.1rem, 0.9vw + 0.85rem, 1.25rem); }
.fine-print { font-size: 0.875rem; color: var(--color-text-subtle); }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--alt { background: var(--color-bg-alt); border-block: 1px solid var(--color-border); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-title { font-size: clamp(1.7rem, 2.2vw + 0.9rem, 2.5rem); }
.section-title--sm { font-size: clamp(1.4rem, 1vw + 1rem, 1.8rem); }

/* --------------------------------------------------------------- Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.05rem, 3vw + 0.9rem, 3.3rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 21ch; }
:lang(zh) .hero-title { max-width: 15em; line-height: 1.3; font-size: clamp(1.85rem, 2.6vw + 0.9rem, 2.9rem); }
:lang(es) .hero-title { max-width: 22ch; font-size: clamp(1.95rem, 3vw + 0.9rem, 3.2rem); }
.wa-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--color-text-subtle); }
.wa-note--light { color: var(--color-on-deep-muted); }
.alt-route { margin: 18px 0 0; font-size: 0.95rem; color: var(--color-text-muted); }

.hero-visual { position: relative; padding-bottom: 84px; }
.trade-illustration { display: block; width: 100%; height: auto; }
.hero-card { position: absolute; left: clamp(-24px, -2vw, 0px); right: 14%; bottom: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.hero-card-title { font-weight: 700; margin: 0 0 2px; }
.hero-card-text { margin: 0 0 12px; color: var(--color-text-muted); font-size: 0.95rem; }
.lang-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 0.85rem; color: var(--color-text-subtle); }
.lang-chips > span:first-child { font-weight: 600; margin-right: 2px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--color-brand-soft); color: var(--color-brand-deep); font-weight: 650; }

/* Illustration fills (token-driven) */
.i-sky { fill: var(--illus-sky); }
.i-sun { fill: var(--illus-sun); }
.i-route { stroke: var(--color-accent); stroke-width: 2.5; stroke-dasharray: 7 7; }
.i-dot { fill: var(--color-accent); }
.i-c1 { fill: var(--illus-c1); }
.i-c2 { fill: var(--illus-c2); }
.i-c3 { fill: var(--illus-c3); }
.i-c4 { fill: var(--illus-c4); }
.i-ribs { stroke: rgb(255 255 255 / 0.28); stroke-width: 1.5; }
.i-crane { stroke: var(--illus-steel); stroke-width: 5; stroke-linecap: round; }
.i-crane-box, .i-bridge { fill: var(--illus-steel); }
.i-window { fill: var(--illus-sky); }
.i-quay { fill: var(--color-border-strong); }
.i-hull { fill: var(--illus-steel); }
.i-hull-line { stroke: var(--color-accent); stroke-width: 3; }
.i-water { fill: var(--illus-water); }
.i-wave { stroke: var(--color-surface); stroke-width: 3; stroke-linecap: round; opacity: 0.8; }

/* --------------------------------------------------------------- Cards */
.card-grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--uses { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid--uses > * { grid-column: span 2; }
.card-grid--uses > :nth-child(4), .card-grid--uses > :nth-child(5) { grid-column: span 3; }
.card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px); }
.card p { color: var(--color-text-muted); }
.card p:last-child { margin-bottom: 0; }
.card-title { font-size: 1.2rem; }
.card-index { display: inline-block; font-size: 0.85rem; font-weight: 800; color: var(--color-accent); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--color-accent-soft); }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(14px, 2vw, 22px); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.split-col { border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.split-col--remit { background: var(--color-brand-deep); color: var(--color-on-deep); }
.split-col--remit .split-title { color: #fff; }
.split-col--remit .checklist svg { color: var(--color-on-deep-muted); }
.split-col--fi { background: var(--color-surface); border: 1px solid var(--color-border); }
.split-title { font-size: 1.2rem; margin-bottom: 18px; }

.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checklist svg { margin-top: 0.22em; color: var(--color-brand); }

.pill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pill-list li { padding: 12px 16px; border-radius: 10px; background: var(--color-bg-alt); font-weight: 650; }

.boundary-inline { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 0.95rem; font-weight: 650; color: var(--color-brand-deep); }
.boundary-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand); }
.boundary-panel { display: flex; gap: 16px; align-items: flex-start; margin-top: clamp(20px, 3vw, 28px); padding: clamp(18px, 2.5vw, 24px); border-radius: var(--radius); background: var(--color-brand-tint); border: 1px solid var(--color-brand-soft); border-left: 4px solid var(--color-brand); }
.boundary-title { font-weight: 750; color: var(--color-brand-deep); margin: 4px 0; }
.boundary-text { margin: 0; color: var(--color-text-muted); font-size: 0.975rem; }

/* Flow diagram */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: flow; }
.flow-step { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 20px; border-top: 4px solid var(--color-brand); }
.flow-step--fi { border-top-color: var(--color-text-subtle); }
.flow-step--portal { border-top-color: var(--color-accent); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; font-weight: 700; color: var(--color-text-subtle); background: var(--color-bg); border-radius: 50%; z-index: 1; font-size: 0.9rem; }
.section--alt .flow-step:not(:last-child)::after { background: var(--color-bg-alt); }
.flow-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-brand); color: var(--color-on-brand); font-weight: 800; margin-right: 8px; vertical-align: middle; }
.flow-step--fi .flow-num { background: var(--color-text-subtle); }
.flow-step--portal .flow-num { background: var(--color-accent); }
.flow-who { display: inline-block; vertical-align: middle; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-subtle); }
.flow-title { font-size: 1.05rem; margin: 14px 0 8px; line-height: 1.35; }
.flow-step p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); }

/* YeePay channel */
.channel { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.channel .section-head { margin-bottom: 18px; }
.brand-slot { margin: 0; min-height: 170px; display: grid; place-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; text-align: center; }
.brand-slot--placeholder { border: 2px dashed var(--color-border-strong); background: var(--color-bg); }
/* Partner logo shown unaltered on its own original background panel. */
.brand-slot--logo img { width: min(100%, 300px); height: auto; display: block; }
.yeepay-statement { margin: 0 0 18px; display: grid; gap: 10px; }
.ys-row { padding: 16px 20px; border-radius: var(--radius); }
.ys-row--relationship { background: var(--color-surface); border: 1px dashed var(--color-draft-text); }
.ys-row--status { background: var(--color-brand-tint); border: 1px solid var(--color-brand-soft); border-left: 4px solid var(--color-brand); }
.ys-label { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-subtle); }
.ys-row .tag { margin-bottom: 6px; }
.yeepay-statement-text { font-size: 1.15rem; font-weight: 750; margin: 0; }
.yeepay-statement-fine { margin: 0; font-size: 0.975rem; font-weight: 600; color: var(--color-brand-deep); }
.boundary-panel + .yeepay-statement { margin-top: 20px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
.trust-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; }
.trust-item p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }
.trust-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-brand-soft); color: var(--color-brand); margin-bottom: 14px; }
.trust-title { font-size: 1.05rem; }
.trust-item--ph { grid-column: 1 / -1; border-style: dashed; border-color: var(--color-border-strong); background: var(--color-bg); }

/* Testimonials */
.quote-card { margin: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0 0 16px; font-size: 1.05rem; flex: 1; }
.quote-card blockquote p { margin: 0; }
.quote-card figcaption { font-size: 0.9rem; color: var(--color-text-subtle); font-weight: 600; }
/* Internal testimonial slots: deliberately NOT styled like quotes. */
.slot-card { border: 2px dashed var(--color-border-strong); border-radius: var(--radius); padding: 20px; background: repeating-linear-gradient(135deg, var(--color-bg) 0 12px, var(--color-bg-alt) 12px 24px); display: grid; gap: 6px; align-content: start; }
.slot-card .tag { justify-self: start; margin-bottom: 4px; }
.slot-label { margin: 0; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.slot-text { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.quote-card .tag { align-self: flex-start; }

/* CTA band */
.cta-band { background: var(--color-brand-deep); color: var(--color-on-deep); padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.08); box-shadow: 0 0 0 60px rgb(255 255 255 / 0.025), 0 0 0 120px rgb(255 255 255 / 0.02); pointer-events: none; }
.cta-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; align-items: center; gap: 24px 48px; }
.cta-band-title { color: #fff; font-size: clamp(1.6rem, 2vw + 0.9rem, 2.3rem); }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .btn-row { margin: 0; }

/* --------------------------------------------------------------- Inner pages */
.page-hero { padding: clamp(44px, 6vw, 84px) 0 clamp(28px, 4vw, 40px); background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%); border-bottom: 1px solid var(--color-border); }
.page-title { font-size: clamp(1.95rem, 2.8vw + 0.9rem, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
:lang(zh) .page-title { line-height: 1.3; }
.page-hero .btn-row { margin-top: 24px; }

.callout { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); }
.callout--quiet { background: transparent; }
.callout-title { font-size: 1.35rem; }
.callout p:last-child { margin-bottom: 0; }
.currency-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.currency-list li { padding: 10px 18px; border-radius: 10px; background: var(--color-brand-soft); color: var(--color-brand-deep); font-weight: 800; letter-spacing: 0.03em; }

.notice { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); }
.notice-title { font-size: 1.25rem; }
.notice .checklist svg { color: var(--color-accent); }

/* FAQ */
.faq-group { margin-bottom: 40px; }
.faq-group-title { font-size: 1.3rem; padding-bottom: 12px; border-bottom: 2px solid var(--color-text); margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 2px; font-weight: 650; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-brand); }
.faq-icon { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-border-strong); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 2px 20px; color: var(--color-text-muted); max-width: 68ch; }
.faq-answer p { margin: 0; }

/* Contact channels */
.channels { display: grid; align-items: start; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(14px, 2vw, 20px); margin-bottom: 20px; }
.channel-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.channel-card--primary { background: var(--color-brand-deep); color: var(--color-on-deep); border-color: var(--color-brand-deep); }
.channel-card--primary .channel-title { color: #fff; }
.channel-card--primary .ph { background: rgb(255 241 184 / 0.18); color: #ffe7a0; }
.channel-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.channel-value { font-weight: 650; margin: 0; }
.wa-message { font-style: italic; padding: 10px 14px; border-radius: 10px; background: rgb(255 255 255 / 0.08); }

/* Drafts */
.draft-banner { margin: 16px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--color-ph-bg); color: var(--color-ph-text); font-weight: 600; }
.legal-body h2 { font-size: 1.25rem; margin-top: 32px; }

/* --------------------------------------------------------------- Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-title { font-size: 1.2rem; margin-top: 8px; }
.form-aside .checklist { margin-bottom: 28px; }
.aside-note { color: var(--color-text-muted); font-size: 0.975rem; padding-top: 20px; border-top: 1px solid var(--color-border); }

.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: 0.8125rem; font-weight: 700; color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-list dd { margin: 0; }

.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 3.5vw, 40px); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-head p { color: var(--color-text-muted); }
.form-title { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.85rem); margin-bottom: 6px; }
.preview-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--color-ph-bg); color: var(--color-ph-text); font-size: 0.9rem; font-weight: 600; margin-bottom: 24px; }
.preview-note::before { content: "α"; font-weight: 800; }

.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.field-req { font-weight: 500; font-size: 0.75rem; color: var(--color-text-subtle); margin-left: 4px; }
.field-req--opt { font-style: italic; }
.field-hint { font-size: 0.875rem; color: var(--color-text-subtle); margin: -2px 0 8px; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--color-text); background: var(--color-bg);
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-sm); padding: 11px 14px; min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:hover, textarea:hover { border-color: var(--color-text-subtle); }
input:focus, textarea:focus { outline: none; border-color: var(--color-brand); background: var(--color-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 18%, transparent); }

.field-meta { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.char-count { margin: 6px 0 0 auto; font-size: 0.8125rem; color: var(--color-text-subtle); white-space: nowrap; }
.field-error { margin: 6px 0 0; font-size: 0.875rem; color: var(--color-danger); font-weight: 650; }
.field-error:empty { display: none; }
.has-error input, .has-error textarea { border-color: var(--color-danger); background: var(--color-danger-bg); }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--color-border-strong); border-radius: 999px; font-size: 0.95rem; font-weight: 550; background: var(--color-bg); cursor: pointer; }
.choice input:checked + span { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.choice input:focus-visible + span { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.sensitive-note { font-size: 0.875rem; color: var(--color-text-muted); padding: 12px 14px; border-left: 3px solid var(--color-accent); background: var(--color-accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.privacy-note { font-size: 0.85rem; color: var(--color-text-subtle); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 8px; }
.form-actions .btn { width: 100%; }

.error-summary { border: 2px solid var(--color-danger); background: var(--color-danger-bg); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px; }
.error-summary-title { font-size: 1rem; color: var(--color-danger); margin: 0 0 8px; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: var(--color-danger); font-weight: 650; }

.form-success { text-align: center; padding: clamp(12px, 3vw, 32px) 0; }
.form-success:focus { outline: none; }
.form-success-icon { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand); font-size: 1.6rem; font-weight: 700; }
.form-success-title { font-size: 1.4rem; }
.form-success p { color: var(--color-text-muted); max-width: 46ch; margin-inline: auto; }
.payload-preview { text-align: left; margin: 20px 0 24px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); }
.payload-preview summary { cursor: pointer; padding: 12px 14px; font-weight: 650; font-size: 0.9rem; }
.payload-preview pre { margin: 0; padding: 0 14px 14px; overflow-x: auto; font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--color-brand-deep); color: var(--color-on-deep-muted); padding-top: clamp(48px, 6vw, 72px); font-size: 0.95rem; }
.site-footer a { color: var(--color-on-deep); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .wordmark { color: #fff; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { max-width: 46ch; color: var(--color-on-deep); }
.footer-brand .footer-fine, .footer-brand .footer-langs { font-size: 0.875rem; color: var(--color-on-deep-muted); }
.footer-heading { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 20px; padding-bottom: 28px; font-size: 0.8125rem; display: grid; gap: 6px; }
.footer-base p { margin: 0; }
.ph-legend { display: block; margin-top: 4px; }
.site-footer .planned { color: var(--color-on-deep); }
.site-footer .tag--ph { background: rgb(255 241 184 / 0.15); color: #ffe7a0; }
.site-footer .ph { background: rgb(255 241 184 / 0.15); color: #ffe7a0; }
/* Footer registered-details line: internal alpha note, matching the Company page. */
.footer-note { display: grid; gap: 8px; justify-items: start; padding: 12px 14px; border: 1.5px dashed rgb(255 255 255 / 0.28); border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.03) 0 12px, transparent 12px 24px); margin-bottom: 6px; }
.footer-note .tag { margin: 0; }
.footer-note--contact { margin: 0 0 28px; }
.footer-note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; color: var(--color-on-deep-muted); }
.footer-contact { margin-bottom: 14px; }
.footer-note p { margin: 0; }
.site-footer .tag--internal { background: var(--color-on-deep); color: var(--color-brand-deep); }
.footer-note .ph { background: none; border: 0; padding: 0; color: var(--color-on-deep-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; font-weight: 500; letter-spacing: 0; }

/* Language chooser / 404 */
.lang-chooser main { padding: 18vh 0; text-align: center; }
.lang-chooser .wordmark { font-size: 2rem; margin-bottom: 28px; justify-content: center; }
.lang-chooser .wordmark-mark { height: 40px; }
.lang-chooser ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lang-chooser ul a { display: inline-block; padding: 12px 22px; border: 1.5px solid var(--color-brand); border-radius: 999px; font-weight: 650; text-decoration: none; }

/* --------------------------------------------------------------- Company page rhythm */
/* Tighter, connected spacing between the intro, "Our approach" and the
   lower sections, while keeping a spacious feel. */
.page-company .page-hero { padding-bottom: clamp(24px, 3vw, 36px); }
.page-company .section { padding-block: clamp(40px, 5.5vw, 72px); }
.page-company .page-hero + .section { padding-top: clamp(32px, 4vw, 52px); }
.page-company .section-head { margin-bottom: clamp(20px, 3vw, 32px); }

/* Internal alpha notes: placeholders that must read as notes for the team,
   never as public copy. Dashed, hatched panel; values in monospace. */
.split-2--notes { align-items: stretch; }
.alpha-note { border: 2px dashed var(--color-border-strong); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 24px); background: repeating-linear-gradient(135deg, var(--color-bg) 0 12px, var(--color-bg-alt) 12px 24px); display: grid; gap: 10px; align-content: start; }
.alpha-note .tag { justify-self: start; margin: 0; }
.alpha-note-title { font-size: 1.15rem; margin: 2px 0 0; color: var(--color-text-muted); }
.alpha-note-value { margin: 0; }
.alpha-note .ph { background: none; color: var(--color-text-muted); padding: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; font-weight: 500; letter-spacing: 0; }
.alpha-note-list { gap: 12px; }
.company-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 24px); display: grid; gap: 14px; align-content: start; }
.company-card-title { font-size: 1.15rem; margin: 0; }
.alpha-note-list dd { font-size: 0.85rem; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1023px) {
  .hero-grid, .channel, .split, .split-2, .form-layout, .cta-band-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2)::after { display: none; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .card-grid--uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--uses > *, .card-grid--uses > :nth-child(4) { grid-column: auto; }
  .card-grid--uses > :nth-child(5) { grid-column: 1 / -1; }
  .channels { grid-template-columns: 1fr 1fr; }
  .channel-card--primary { grid-column: 1 / -1; }
  .form-aside { position: static; }
  .form-layout .form-card { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .card-grid--2, .card-grid--uses, .flow, .channels, .footer-grid { grid-template-columns: 1fr; }
  .card-grid--uses > :nth-child(5) { grid-column: auto; }
  .flow-step::after { display: none; }
  .btn-row .btn { width: 100%; }
  .hero-card { position: relative; left: 0; right: 0; margin-top: -40px; margin-inline: 12px; }
  .hero-visual { padding-bottom: 0; }
  .boundary-panel { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .alpha-banner, .cta-band, .menu-toggle { display: none; }
  body { background: #fff; }
}

/* Company page: founder note under the values grid */
.founder-note { margin-top: 28px; }
