/* Mideal website. One stylesheet, system fonts, no external resources (works with `style-src 'self'`).
   Brand colours come from the Mideal logo (assets/mideal-logo.svg): coral #cf5d46, cream feathers, golden beak. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #fbf8f4;
  --bg-tint: #f5efe8;
  --surface: #ffffff;
  --surface-2: #f7f2ec;
  --surface-3: #efe8e0;
  --ink: #1a1714;
  --text: #3d3833;
  --muted: #6e665f;
  --line: #e9e2da;
  --line-strong: #d9cfc4;
  --brand: #cf5d46;
  --brand-strong: #b4452f;
  --brand-btn: #bf4a33;
  --brand-btn-hover: #a93f2a;
  --brand-btn-text: #ffffff;
  --brand-soft: #fbe9e3;
  --brand-soft-2: #f6d9cf;
  --gold: #f2a33a;
  --gold-soft: #fdf1dc;
  --ok: #1d7550;
  --ok-soft: #e3f4ea;
  --focus: #b4452f;
  --grid: rgb(26 23 20 / 5%);
  --hl-from: #b4452f;
  --hl-to: #c45a1f;
  --band-bg: #1c1917;
  --band-card: #26211e;
  --band-line: #3a3430;
  --band-text: #f6f1eb;
  --band-muted: #c2b8ae;
  --band-accent: #f39a85;
  --shadow-sm: 0 1px 2px rgb(60 40 20 / 6%), 0 1px 1px rgb(60 40 20 / 4%);
  --shadow-md: 0 10px 24px -12px rgb(60 40 20 / 20%), 0 3px 8px -4px rgb(60 40 20 / 10%);
  --shadow-lg: 0 30px 60px -24px rgb(60 40 20 / 30%), 0 12px 24px -12px rgb(60 40 20 / 14%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100e0d;
    --bg-tint: #151211;
    --surface: #1b1816;
    --surface-2: #231f1c;
    --surface-3: #2b2623;
    --ink: #f6f1eb;
    --text: #d9d1c9;
    --muted: #a79e96;
    --line: #2d2825;
    --line-strong: #3d3632;
    --brand: #e2705a;
    --brand-strong: #f39a85;
    --brand-btn: #ee8068;
    --brand-btn-hover: #f59783;
    --brand-btn-text: #1b0f0b;
    --brand-soft: #2c1915;
    --brand-soft-2: #3b2019;
    --gold: #f5b04f;
    --gold-soft: #2a2013;
    --ok: #5fd39a;
    --ok-soft: #14291e;
    --focus: #f39a85;
    --grid: rgb(246 241 235 / 4.5%);
    --hl-from: #f39a85;
    --hl-to: #f5b04f;
    --band-bg: #1b1816;
    --band-card: #241f1c;
    --band-line: #362f2b;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 10px 24px -12px rgb(0 0 0 / 60%), 0 3px 8px -4px rgb(0 0 0 / 40%);
    --shadow-lg: 0 30px 60px -24px rgb(0 0 0 / 75%), 0 12px 24px -12px rgb(0 0 0 / 50%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang^="zh"] body { font-size: 1rem; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--ink); line-height: 1.2; font-weight: 700; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.025em; }
html[lang="en"] h3 { letter-spacing: -0.01em; }
strong { color: var(--ink); font-weight: 650; }
::selection { background: color-mix(in srgb, var(--brand) 26%, transparent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.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; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary {
  background: var(--brand-btn); color: var(--brand-btn-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 10px 24px -12px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn--primary:hover { background: var(--brand-btn-hover); transform: translateY(-1px); text-decoration: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--muted); transform: translateY(-1px); text-decoration: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }

.kicker {
  display: inline-block; margin: 0 0 14px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand-strong);
}
html[lang^="zh"] .kicker { font-size: 0.875rem; letter-spacing: 0.14em; }
.h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3rem); line-height: 1.1; }
html[lang^="zh"] .h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); line-height: 1.25; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--brand { background: var(--brand-soft); color: var(--brand-strong); }
.pill--muted { background: var(--surface-2); color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.nav { margin-left: 12px; }
.nav__links { display: flex; gap: 4px; list-style: none; padding: 0; }
.nav__links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.lang-switch:hover { background: var(--surface-2); color: var(--ink); }
.lang-switch .icon { width: 1.1em; height: 1.1em; }

.menu { display: none; position: relative; }
.menu__toggle {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(calc(100vw - 2 * var(--gutter)), 340px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px;
}
.menu__links { list-style: none; padding: 0; display: grid; }
.menu__links a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 550; }
.menu__links a:hover, .menu__links a[aria-current="page"] { background: var(--surface-2); }
.menu__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 10px 4px 4px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .nav, .header__lang, .header__signin { display: none; }
  .menu { display: block; }
}
@media (max-width: 380px) {
  .header__inner { gap: 12px; }
  .header__actions { gap: 8px; }
  .header__trial { padding: 0 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 125%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 46% at 80% 26%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%),
    radial-gradient(30% 34% at 8% 6%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 72%),
    radial-gradient(30% 30% at 55% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 25%, #000 25%, transparent 80%);
  mask-image: radial-gradient(75% 65% at 50% 25%, #000 25%, transparent 80%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__copy > * { animation: rise 0.8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.hero__copy > :nth-child(5) { animation-delay: 0.24s; }
.hero__copy > :nth-child(6) { animation-delay: 0.3s; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.875rem; font-weight: 550; color: var(--text); line-height: 1.3;
}
.eyebrow__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.eyebrow__icon .icon { width: 15px; height: 15px; }
.hero__title { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem); line-height: 1.02; font-weight: 800; margin-bottom: 22px; }
html[lang^="zh"] .hero__title { font-size: clamp(2.05rem, 1.3rem + 3.4vw, 3.9rem); line-height: 1.16; font-weight: 700; letter-spacing: 0.01em; }
.hl {
  background: linear-gradient(100deg, var(--hl-from), var(--hl-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .hl { color: var(--brand-strong); } }
.hero__lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; max-width: 36em; color: var(--text); margin-bottom: 30px; }
html[lang^="zh"] .hero__lead { line-height: 1.85; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero__note { font-size: 0.9375rem; color: var(--muted); margin-bottom: 26px; }
.hero__points { list-style: none; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--line); max-width: 36em; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 550; color: var(--ink); }
.hero__points .icon { color: var(--ok); width: 1.15em; height: 1.15em; stroke-width: 2.2; }

/* Illustrated chat (HTML + CSS, no images). */
.demo { margin: 0; min-width: 0; }
.demo__art { position: relative; max-width: 500px; margin-inline: auto; padding: 46px 0 84px; }
.demo__art::before {
  content: ""; position: absolute; inset: 6% 8% 10%; z-index: -1; border-radius: 40px; filter: blur(42px); opacity: 0.55;
  background: linear-gradient(140deg, var(--brand), var(--gold));
}
.phone {
  position: relative; width: min(100%, 380px); margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: rise 0.9s var(--ease) 0.1s both;
}
.phone__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #c64f37, #a93f2a); color: #fff; font-weight: 700; font-size: 1rem;
}
.phone__who { display: grid; line-height: 1.25; min-width: 0; }
.phone__who strong { font-size: 0.975rem; }
.phone__status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.phone__body {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 20px;
  background:
    radial-gradient(circle at 1px 1px, var(--grid) 1px, transparent 0) 0 0 / 16px 16px,
    var(--surface);
}
.msg { max-width: 84%; margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 0.9rem; line-height: 1.45; animation: msg-in 0.6s var(--ease) both; }
html[lang^="zh"] .msg { line-height: 1.6; }
.msg--in { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--brand-btn); color: var(--brand-btn-text); border-bottom-right-radius: 6px; }
.msg--1 { animation-delay: 0.35s; }
.msg--2 { animation-delay: 0.8s; }
.msg--3 { animation-delay: 1.25s; }
.msg--4 { animation-delay: 1.7s; }
.msg--5 { animation-delay: 2.2s; }
.msg--rich { max-width: 90%; }
.msg--rich > p { margin: 0 0 8px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.offer__head { display: grid; gap: 7px; }
.offer__head strong { font-size: 0.9rem; }
.offer__price { display: block; width: 46%; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--line-strong), var(--line)); }
.offer__tag { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.74rem; font-weight: 650; }
.offer__tag .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.offer__pay { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.8rem; font-weight: 650; }
.offer__pay .icon { width: 16px; height: 16px; }
.offer__pay .icon:last-child { margin-left: auto; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; margin: 0; padding: 12px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--surface-2); animation: msg-in 0.5s var(--ease) 2.7s both; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.3s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }

.float {
  position: absolute; z-index: 2; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.float p { margin: 0; }
.float--live { top: 0; right: -18px; width: 212px; padding: 12px 14px 14px; animation: card-in 0.8s var(--ease) 1s both, float 7s ease-in-out 2s infinite; }
.float__head { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-bottom: 8px !important; }
.float__head img { width: 18px; height: 18px; border-radius: 5px; }
.float__title { display: flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.float__text { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.float__btn { display: inline-flex; margin-top: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand-strong); font-size: 0.78rem; font-weight: 700; }
.dot--live { animation: pulse 2s infinite; }
.float--alert { left: -26px; bottom: 0; width: 250px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; animation: card-in 0.8s var(--ease) 2.9s both, float 8s ease-in-out 3.8s infinite; }
.float__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--brand-soft); color: var(--brand-strong); }
.float__icon .icon { width: 18px; height: 18px; }
.float__body { display: grid; min-width: 0; }
.demo__caption { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .demo__art { max-width: 460px; }
}
@media (max-width: 560px) {
  .demo__art { padding: 12px 0 0; }
  .float--live, .float--alert { position: relative; inset: auto; width: auto; animation: card-in 0.8s var(--ease) 1s both; }
  .float--live { margin: -26px 10px 0 auto; max-width: 240px; }
  .float--alert { margin: 10px auto 0 10px; max-width: 290px; }
  .demo__caption { margin-top: 14px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: var(--header-h); }
.section--tint { background: var(--bg-tint); }
.section--flush { padding-top: 0; padding-bottom: clamp(56px, 7vw, 88px); }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { font-size: 1.125rem; color: var(--muted); margin: 0; }
.section__head--center .section__lead { text-wrap: balance; }
.section__more { text-align: center; margin: 36px 0 0; }

/* How it works */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 750; font-size: 0.95rem;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--text); margin-bottom: 22px; }
.step__visual { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 550; color: var(--ink);
}
.chip .icon { width: 15px; height: 15px; color: var(--brand-strong); }
.setup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.setup__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; }
.setup__key { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.setup__key .icon { width: 15px; height: 15px; color: var(--brand-strong); }
.setup__val { color: var(--muted); font-variant-numeric: tabular-nums; }
.setup__val--ok { color: var(--ok); font-weight: 650; }
.convos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.convo { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; }
.convo__avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 0.72rem; font-weight: 700; flex: none; }
.convo__who { font-weight: 600; color: var(--ink); margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo--alert { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.convos__take { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-btn); color: var(--brand-btn-text); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.convos__take .icon { width: 14px; height: 14px; }

/* Features */
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); }
.feature h3 { font-size: 1.125rem; }
.feature p { margin: 0; color: var(--text); }

/* Who it's for */
.audience { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.audience__item {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.audience__item::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.audience__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--gold-soft); color: var(--brand-strong); }
.audience__item h3 { font-size: 1.0625rem; }
.audience__item p { margin: 0; font-size: 0.975rem; color: var(--text); }

/* You stay in control */
.section--band { padding-top: 0; }
.band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 5.5vw, 72px); border-radius: var(--radius-xl); background: var(--band-bg); color: var(--band-text);
  border: 1px solid var(--band-line);
}
.band::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 42%, transparent), transparent);
}
.band .kicker { color: var(--band-accent); }
.band h2, .band h3, .band strong { color: var(--band-text); }
.band__lead { color: var(--band-muted); font-size: 1.125rem; }
.rules { margin-top: 30px; padding: 16px; border-radius: 20px; background: var(--band-card); border: 1px solid var(--band-line); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 60%); }
.rules__head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; font-weight: 700; font-size: 0.9rem; }
.rules__tag { font-size: 0.72rem; font-weight: 600; color: var(--band-muted); border: 1px solid var(--band-line); border-radius: 999px; padding: 2px 9px; }
.rules ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.rules li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 4%); font-size: 0.875rem; }
.rules__key { width: 34%; color: var(--band-muted); flex: none; }
.rules__val { color: var(--band-text); font-weight: 550; min-width: 0; }
.rules__check { margin-left: auto; color: #5fd39a; stroke-width: 2.4; width: 18px; height: 18px; }
.points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-content: center; }
.point__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: rgb(255 255 255 / 7%); color: var(--band-accent); border: 1px solid var(--band-line); }
.point h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.point p { margin: 0; color: var(--band-muted); font-size: 0.975rem; }

/* ---------- Pricing block (rendered by scripts/fill.mjs) ---------- */
.trial {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 22px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(110deg, var(--brand-soft), var(--gold-soft)); border: 1px solid var(--brand-soft-2);
}
.trial p { margin: 0; }
.trial__title { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 750; color: var(--ink); }
.trial__title .icon { color: var(--brand-strong); }
.trial__line { color: var(--text); margin-top: 4px !important; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.plan--popular {
  border: 2px solid var(--brand); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 75%, var(--surface)), var(--surface) 42%);
}
.plan__badge {
  position: absolute; top: -14px; left: 26px; margin: 0; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-btn); color: var(--brand-btn-text); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
}
.plan__name { font-size: 1.375rem; margin-bottom: 6px; }
.plan__tagline { color: var(--muted); font-size: 0.95rem; margin: 0 0 22px; }
@media (min-width: 961px) { .plan__tagline { min-height: 3.3em; } }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.plan__amount { font-size: clamp(2.5rem, 2rem + 1.4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.plan__unit { color: var(--muted); font-size: 0.95rem; font-weight: 550; }
.plan__yearly { margin: 10px 0 0; font-size: 0.9375rem; color: var(--text); }
.plan__save { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.plan__credits { display: flex; align-items: center; gap: 10px; margin: 20px 0 22px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.95rem; color: var(--text); }
.plan__credits .icon { color: var(--brand-strong); }
.plan__credits strong { font-variant-numeric: tabular-nums; }
.plan__features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; color: var(--text); }
.plan__features .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); stroke-width: 2.2; }
.plan__cta { margin-top: auto; width: 100%; }
.topups {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 24px;
  margin-top: 22px; padding: 20px 24px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--surface);
}
.topups p { margin: 0; }
.topups__title { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); }
.topups__title .icon { color: var(--brand-strong); }
.topups__text { color: var(--muted); font-size: 0.95rem; }
.topups__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topups__list li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9375rem; white-space: nowrap; }
.topups__list span { color: var(--text); font-variant-numeric: tabular-nums; }
.pricing__notes { display: grid; gap: 8px; margin-top: 22px; }
.pricing__notes p { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 0.9375rem; color: var(--muted); }
.pricing__notes .icon { margin-top: 2px; width: 18px; height: 18px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 6px; cursor: pointer; font-weight: 650; font-size: 1.0625rem; color: var(--ink); border-radius: 10px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand-strong); }
.faq__icon { width: 22px; height: 22px; color: var(--brand-strong); transition: transform 0.3s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 6px 22px; color: var(--text); max-width: 70ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.section--cta { padding-top: 0; }
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 15% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
    radial-gradient(50% 70% at 85% 100%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%);
}
.cta__logo { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px; box-shadow: var(--shadow-md); }
.cta .h2 { max-width: 20ch; margin-inline: auto; }
.cta__text { color: var(--muted); font-size: 1.0625rem; margin-bottom: 28px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 150%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 85% 20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(30% 40% at 5% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
}
.page-hero__inner > * { max-width: 820px; }
.page-title { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); line-height: 1.06; font-weight: 800; }
html[lang^="zh"] .page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.22; font-weight: 700; }
.page-lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); color: var(--text); max-width: 40em; margin: 0; }

/* Billing explainer */
.billing { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bill { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.bill__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-strong); }
.bill h3 { font-size: 1.0625rem; }
.bill p { margin: 0; font-size: 0.975rem; color: var(--text); }
.refund-panel {
  display: flex; gap: 20px; margin-top: 22px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(110deg, var(--brand-soft), var(--gold-soft)); border: 1px solid var(--brand-soft-2);
}
.refund-panel__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-sm); }
.refund-panel__body { min-width: 0; }
.refund-panel h3 { font-size: 1.25rem; }
.refund-panel p { color: var(--text); }
.refund-panel p:last-child { margin-bottom: 0; }
.billing-help { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 0; color: var(--muted); }
.billing-help .icon { margin-top: 3px; }

/* Legal pages */
.page-hero--legal { border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.legal-meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 0.95rem; }
.legal-meta li { display: inline-flex; align-items: center; gap: 8px; }
.legal-meta .icon { color: var(--brand-strong); width: 1.1em; height: 1.1em; }
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: 48px 0 clamp(72px, 9vw, 120px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 8px; }
.toc__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
html[lang^="zh"] .toc__title { letter-spacing: 0.12em; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
.toc a span { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.prose { max-width: 74ch; min-width: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.25em; margin-bottom: 1em; }
.prose li { margin: 0.45em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--brand); }
.legal__intro { font-size: 1.0625rem; padding-bottom: 8px; }
.legal__intro p { color: var(--ink); }
.legal__section { padding-top: 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__section h2 { display: flex; gap: 10px; font-size: 1.375rem; margin: 1.6em 0 0.7em; }
html[lang^="zh"] .legal__section h2 { font-size: 1.3rem; }
.legal__num { color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.callout { margin: 0.5em 0 1em; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); box-shadow: var(--shadow-sm); }
.callout p { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.contact-lines { list-style: none !important; padding: 18px 20px !important; margin: 0 0 1em; display: grid; gap: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.contact-lines li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; }
.contact-lines .icon { margin-top: 3px; color: var(--brand-strong); width: 1.1em; height: 1.1em; }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.contact-card, .contact-topics { padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card { box-shadow: var(--shadow-md); }
.contact-card h2, .contact-topics h2 { font-size: 1.375rem; }
.contact-card__lead { color: var(--muted); }
.contact-details { display: grid; gap: 4px; margin: 0 0 24px; }
.contact-details div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-details dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.contact-details dt .icon { color: var(--brand-strong); width: 1.1em; height: 1.1em; }
.contact-details dd { margin: 0; color: var(--ink); font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.topics { list-style: none; padding: 0; display: grid; gap: 4px; }
.topic { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.topic__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }
.topic h3 { font-size: 1rem; margin-bottom: 2px; }
.topic p { margin: 0; color: var(--text); font-size: 0.95rem; }
.note-card { display: flex; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--bg-tint); border: 1px solid var(--line); }
.note-card__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--gold-soft); color: var(--brand-strong); }
.note-card h2 { font-size: 1.1875rem; }
.note-card p { margin: 0; color: var(--text); }
.contact-console { margin: 22px 0 0; color: var(--muted); }

/* 404 */
.notfound { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.notfound__inner { max-width: 640px; }
.notfound__logo { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 26px; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.notfound .page-lead { margin: 0 auto 30px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 80px) 0 32px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 0.8fr 1fr 1.45fr; gap: 36px; }
.footer__brand p { color: var(--muted); max-width: 30ch; margin: 14px 0 12px; }
.footer__brand .lang-switch { margin-left: -12px; }
.site-footer h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
html[lang^="zh"] .site-footer h2 { letter-spacing: 0.12em; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.contact-block { font-style: normal; }
.contact-block dl { margin: 0; display: grid; gap: 10px; }
.contact-block div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
html[lang^="zh"] .contact-block div { grid-template-columns: 52px minmax(0, 1fr); }
.contact-block dt { color: var(--muted); }
.contact-block dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 560px; margin-inline: auto; gap: 26px; }
  .features, .billing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .toc { display: none; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .topups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .features, .billing, .audience, .points { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .trial { padding: 20px; }
  .trial .btn { width: 100%; }
  .plan { padding: 28px 22px 24px; }
  .refund-panel, .note-card { flex-direction: column; gap: 14px; }
  .contact-details div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rules__key { width: 38%; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print (policies) ---------- */
@media print {
  .site-header, .toc, .skip-link, .section--cta, .footer__brand, .site-footer nav { display: none !important; }
  body { background: #fff; color: #000; }
  .legal { display: block; padding: 0; }
  .page-hero::before, .hero::before, .hero::after { display: none; }
}
