/* ═══════════════════════════════════════════════════════════════════════
   Moneki V3 — side pages (产品 / 适用场景 / 如何落地 / 信任与安全 / 关于我们 / 隐私)
   Responsive flow layouts reusing the DS4 tokens + homepage visual language.
   ═══════════════════════════════════════════════════════════════════════ */
.v3-page { background: var(--app-bg); }

/* Sticky inner-page header */
.v3-pageheader { position: sticky; top: 0; z-index: 60; padding: 20px 0 14px; background: linear-gradient(var(--app-bg) 68%, rgba(236,236,236,0)); }

/* Section rhythm + container */
.v3-psec { padding-block: clamp(56px, 7vw, 104px); }
.v3-psec--tight { padding-block: clamp(40px, 5vw, 72px); }
/* Alternating section fills for breathing rhythm (like the homepage) */
.v3-psec--white { background: #ffffff; }
.v3-pwrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 120px); }

/* Section header — rhythm group (eyebrow → heading → lead) */
.v3-phead { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.6vw, 20px); max-width: 760px; }
.v3-phead--center { align-items: center; text-align: center; margin-inline: auto; }
.v3-ph-h { margin: 0; font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--fig-ink); }
.v3-ph-lead { margin: 0; font-weight: 500; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.125rem); line-height: 1.85; color: var(--fig-sec); }
.v3-ph-lead--center { text-align: center; }

/* Page hero — centred text with UI imagery bleeding in from both sides */
.v3-phero { position: relative; overflow: hidden; padding-block: clamp(64px, 7vw, 116px) clamp(92px, 9vw, 148px); }
.v3-phero__stage { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.v3-phero__img { position: absolute; top: 50%; width: 660px; max-width: 46vw; border-radius: 20px; box-shadow: var(--fig-sh-card); }
.v3-phero__img--l { left: 0; transform: translate(-46%, -50%); }
.v3-phero__img--r { right: 0; transform: translate(46%, -50%); }
.v3-phero .v3-phead { position: relative; z-index: 2; align-items: center; text-align: center; margin-inline: auto; }
.v3-phero .v3-ph-h { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.v3-phero__lead { max-width: 620px; }
@media (max-width: 980px) { .v3-phero__stage { opacity: 0.32; } }
@media (max-width: 680px) { .v3-phero__stage { display: none; } }

/* Generic auto-fit card grid */
.v3-cgrid { display: grid; gap: clamp(16px, 1.6vw, 22px); grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); margin-top: clamp(32px, 4vw, 52px); }
.v3-cgrid--2 { --min: 340px; }
.v3-cgrid--3 { --min: 300px; }
.v3-cgrid--4 { --min: 232px; }

/* Feature / info card */
.v3-fcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2vw, 28px); border-radius: var(--radius-card); background: var(--grad-card); box-shadow: var(--fig-sh-card); }
.v3-fcard__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-high); box-shadow: var(--fig-sh-control); color: #FF9A1D; }
.v3-fcard__ic svg { width: 24px; height: 24px; display: block; }
.v3-fcard__t { margin: 4px 0 0; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--fig-ink); }
.v3-fcard__b { margin: 0; font-weight: 500; font-size: 0.85rem; line-height: 1.6; color: var(--fig-sec); }
.v3 .v3-fcard__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; color: var(--fig-eyebrow); }
.v3 .v3-fcard__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.v3-fcard:has(.v3-fcard__tag) { padding-bottom: clamp(58px, 5vw, 66px); }
.v3-fcard__tag { position: absolute; left: clamp(20px, 2vw, 28px); bottom: clamp(18px, 1.8vw, 22px); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface-high); box-shadow: var(--fig-sh-control); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--fig-eyebrow); }
.v3-fcard__num { display: inline-block; font-family: var(--font-sans); font-weight: 800; font-size: 1.5rem; line-height: 1.28; padding-bottom: 2px; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Scenarios — 3 independent challenge columns (grouped by spacing = invisible cards) */
.v3-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 76px); margin-top: clamp(32px, 4vw, 52px); }
.v3-ba { display: flex; flex-direction: column; gap: clamp(48px, 5.2vw, 72px); } /* space between the 3 sub-groups (doubled) */

/* G1 · problem statement (eyebrow + icon + title) */
.v3-ba__head { display: flex; flex-direction: column; gap: 14px; }
.v3-ba__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fig-muted); }
.v3-ba__titlerow { display: flex; align-items: center; gap: 14px; }
.v3-ba__icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #23262e; color: #fff; box-shadow: var(--fig-sh-control); }
.v3-ba__icon svg { width: 22px; height: 22px; display: block; }
.v3-ba__t { margin: 0; font-weight: 800; font-size: 1.2rem; line-height: 1.35; color: var(--fig-ink); }

/* G2 · before / after comparison */
.v3-ba__rows { display: flex; flex-direction: column; gap: 18px; }
.v3-ba__row { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 15px 18px; border-radius: 16px; }
.v3-ba__row--before { background: var(--grad-card); box-shadow: var(--fig-sh-card); }
/* EN runs longer than 中文: hold the "before" rows at a common height so the "now"
   rows line up across the three cases. */
:root[data-lang="en"] .v3-ba__row--before { min-height: 104px; }
.v3-ba__row--after { background: var(--brand); box-shadow: var(--fig-sh-card); }
.v3-ba__row--after::before { content: ""; position: absolute; left: 50%; top: -18px; width: 2px; height: 18px; background: linear-gradient(var(--divider), var(--acc-orange)); transform: translateX(-50%); }
.v3-ba__lab { font-weight: 700; font-size: 0.7rem; padding-top: 3px; }
.v3-ba__row--before .v3-ba__lab { color: var(--fig-muted); }
.v3-ba__row--after .v3-ba__lab { color: var(--brand-cta-ink); opacity: 0.72; }
.v3-ba__txt { margin: 0; font-weight: 500; font-size: 0.92rem; line-height: 1.65; color: var(--fig-sec); }
.v3-ba__row--after .v3-ba__txt { color: var(--brand-cta-ink); font-weight: 600; }

/* G3 · solution / key selling point — press (inset) card + simplified UI */
.v3-ba__solution { flex: 1 1 auto; display: flex; flex-direction: column; gap: 15px; padding: clamp(18px, 1.8vw, 22px); border-radius: var(--radius-card); background: var(--surface-main); box-shadow: var(--sh-press, inset 6px 6px 14px rgba(0,0,0,0.09), inset -6px -6px 14px rgba(255,255,255,0.85)); }
.v3-ba__solution .v3-viz { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; } /* white card fills the press card so all three match card 1 */
.v3-ba__sp { display: flex; align-items: center; gap: 11px; margin: 0; font-weight: 800; font-size: 1.18rem; line-height: 1.4; color: var(--fig-ink); }
.v3-ba__spicon { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: var(--brand-cta-ink); box-shadow: var(--fig-sh-control); }
.v3-ba__spicon svg { width: 15px; height: 15px; }

/* Simplified solution UI */
.v3-viz { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 5px 16px rgba(0,0,0,0.06); }
.v3-viz__cap { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.v3-viz__cap span { font-weight: 600; font-size: 0.72rem; color: var(--fig-muted); }
.v3-viz__cap b { font-family: var(--font-sans); font-weight: 800; font-size: 1.05rem; color: var(--fig-ink); }
.v3-viz__stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.v3-viz__seg { height: 100%; }
.v3-viz__legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; }
.v3-viz__legend i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 0.66rem; color: var(--fig-muted); }
.v3-viz__dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; flex: none; }
.v3-viz__track { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #ececec; }
.v3-viz__tseg { height: 100%; }
.v3-viz__tgap { height: 100%; background: repeating-linear-gradient(45deg, #f2e3c6, #f2e3c6 4px, #fff 4px, #fff 8px); }
.v3-viz__years { display: flex; justify-content: space-between; margin-top: 9px; font-size: 0.66rem; color: var(--fig-muted); }
.v3-viz__ans { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.88rem; color: var(--fig-ink); }
.v3-viz__ans img { display: block; }
.v3-viz__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.v3-viz__chip { padding: 5px 10px; border-radius: 999px; background: #f3f3f3; font-size: 0.68rem; font-weight: 600; color: var(--fig-sec); }
.v3-viz__chip--ok { background: #e2efe2; color: #3e7c4c; }

@media (max-width: 900px) { .v3-cases { grid-template-columns: 1fr; gap: 56px; } }

/* Step cards (numbered) */
.v3-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2vw, 30px); border-radius: var(--radius-card); background: var(--grad-card); box-shadow: var(--fig-sh-card); }
.v3-step__n { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-sans); font-weight: 800; font-size: 1.05rem; box-shadow: var(--fig-sh-btn); }
.v3-step__t { margin: 8px 0 0; font-weight: 800; font-size: 1.16rem; color: var(--fig-ink); }
.v3-step__b { margin: 0; font-weight: 500; font-size: 0.88rem; line-height: 1.62; color: var(--fig-sec); }
.v3-step:has(.v3-step__tag) { padding-bottom: clamp(58px, 5vw, 68px); }
.v3-step__tag { position: absolute; left: clamp(22px, 2vw, 30px); bottom: clamp(18px, 1.8vw, 24px); padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-high); box-shadow: var(--fig-sh-control); font-size: 0.74rem; font-weight: 700; color: var(--fig-eyebrow); }

/* Timeline (a day with Moneki) */
.v3-timeline { display: flex; flex-direction: column; margin-top: clamp(28px, 3vw, 44px); }
.v3-tl { display: grid; grid-template-columns: 96px 1fr; gap: clamp(18px, 2vw, 32px); padding: 22px 0; border-top: 1px solid var(--divider); }
/* EN time labels ("Month-end", "Anytime") are wider than 中文 — the gradient
   text is clipped to its box, so give the column room to avoid a cut-off word. */
:root[data-lang="en"] .v3-tl { grid-template-columns: 122px 1fr; }
.v3-tl:first-child { border-top: 0; }
.v3-tl__time { font-family: var(--font-sans); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v3-tl__body { display: flex; flex-direction: column; gap: 4px; }
.v3-tl__t { font-weight: 700; font-size: 1.05rem; color: var(--fig-ink); }
.v3-tl__b { margin: 0; font-weight: 500; font-size: 0.95rem; line-height: 1.7; color: var(--fig-sec); }

/* Accordion / drawer */
.v3-acclist { margin-top: clamp(24px, 3vw, 40px); border-radius: var(--radius-card); background: var(--grad-card); box-shadow: var(--fig-sh-card); overflow: hidden; }
.v3-acc { border-top: 1px solid var(--divider); }
.v3-acc:first-child { border-top: 0; }
.v3-acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(18px, 1.8vw, 24px) clamp(20px, 2vw, 28px); border: 0; background: transparent; text-align: left; cursor: pointer; font-weight: 700; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); color: var(--fig-ink); }
.v3-acc__ic { position: relative; width: 16px; height: 16px; flex: none; }
.v3-acc__ic::before, .v3-acc__ic::after { content: ""; position: absolute; background: var(--fig-eyebrow); border-radius: 2px; transition: opacity var(--spring), transform var(--spring); }
.v3-acc__ic::before { left: 0; top: 7px; width: 16px; height: 2px; }
.v3-acc__ic::after { left: 7px; top: 0; width: 2px; height: 16px; }
.v3-acc.is-open .v3-acc__ic::after { opacity: 0; transform: rotate(90deg); }
.v3-acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--spring); }
.v3-acc__a > div { overflow: hidden; }
.v3-acc__a p { margin: 0 clamp(20px, 2vw, 28px) 0; padding-bottom: 0; font-weight: 500; font-size: 0.98rem; line-height: 1.85; color: var(--fig-sec); }
.v3-acc.is-open .v3-acc__a { grid-template-rows: 1fr; }
.v3-acc.is-open .v3-acc__a p { padding-bottom: clamp(18px, 1.8vw, 24px); }

/* Chip list (你不用做什么 / facts) */
.v3-chiplist { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.v3-chip2 { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--radius-pill); background: var(--surface-high); box-shadow: var(--fig-sh-control); font-weight: 600; font-size: 0.98rem; color: var(--fig-ink); }
.v3-chip2__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); flex: none; }

/* Two-column split (帮你做 / 你仍掌握) */
.v3-split { display: grid; gap: clamp(16px, 1.6vw, 22px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: clamp(28px, 3vw, 44px); }
.v3-splitcard { padding: clamp(24px, 2.2vw, 32px); border-radius: var(--radius-card); box-shadow: var(--fig-sh-card); }
.v3-splitcard--a { background: var(--brand); }
.v3-splitcard--b { background: var(--grad-card); }
.v3-splitcard__t { margin: 0 0 16px; font-weight: 800; font-size: 1.16rem; }
.v3-splitcard--a .v3-splitcard__t { color: var(--brand-cta-ink); }
.v3-splitcard--b .v3-splitcard__t { color: var(--fig-ink); }
.v3-splitcard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.v3-splitcard li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-weight: 500; font-size: 0.97rem; line-height: 1.6; }
.v3-splitcard li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; margin-top: 8px; }
.v3-splitcard--a li { color: var(--brand-cta-ink); }
.v3-splitcard--a li::before { background: rgba(58,37,0,0.55); }
.v3-splitcard--b li { color: var(--fig-sec); }
.v3-splitcard--b li::before { background: var(--brand); }

/* CTA band (reuse home final-CTA look, responsive flow) */
.v3-ctaband { position: relative; overflow: hidden; border-radius: var(--radius-feature); background: var(--brand); box-shadow: var(--fig-sh-feature, var(--fig-sh-card)); padding: clamp(44px, 5vw, 72px) clamp(24px, 4vw, 48px); text-align: center; }
.v3-ctaband__glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.v3-ctaband__glow--a { width: 460px; height: 460px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(255,255,255,0.32), transparent 62%); }
.v3-ctaband__glow--b { width: 380px; height: 380px; left: -140px; bottom: -180px; background: radial-gradient(circle, rgba(255,116,103,0.3), transparent 62%); }
.v3-ctaband__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2vw, 26px); }
.v3-ctaband__h { margin: 0; max-width: 640px; font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); line-height: 1.35; letter-spacing: -0.01em; color: var(--brand-cta-ink); text-wrap: balance; }
.v3-nowrap { white-space: nowrap; }
.v3-ctaband__p { margin: 0; max-width: 560px; font-weight: 500; font-size: 1.02rem; line-height: 1.8; color: var(--brand-cta-ink); opacity: 0.82; }
.v3-ctaband__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.v3-ctaband .v3-btn--light { background: var(--soft-white); color: var(--brand-cta-ink); box-shadow: 0 10px 26px rgba(58,37,0,0.2); font-weight: 700; }
.v3-ctaband .v3-btn--outline { background: rgba(255,255,255,0.16); color: var(--brand-cta-ink); box-shadow: inset 0 0 0 1.5px rgba(58,37,0,0.28); font-weight: 700; }

/* Small helpers */
.v3-mt { margin-top: clamp(24px, 3vw, 40px); }
.v3-note { margin: clamp(24px, 3vw, 40px) 0 0; padding: 18px 22px; border-radius: 16px; background: var(--surface-high); box-shadow: var(--fig-sh-inset); font-weight: 500; font-size: 0.95rem; line-height: 1.75; color: var(--fig-sec); }
.v3-note b { color: var(--fig-ink); font-weight: 800; }
.v3-eyebrow.v3-eyebrow--cn { text-transform: none; letter-spacing: 0.02em; font-size: 12.5px; }

/* /privacy — the policy as long-form text, English then 中文, both always shown (data-no-i18n) */
.v3-policy { max-width: 780px; margin-inline: auto; }
.v3-policy__langs { display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(32px, 4vw, 48px); font-weight: 600; font-size: 0.95rem; color: var(--fig-muted); }
.v3 .v3-policy__langs a { color: var(--fig-ink); padding: 6px 14px; border-radius: 999px; background: var(--fig-surface); box-shadow: var(--fig-sh-inset); }
.v3 .v3-policy__langs a:hover { color: var(--fig-eyebrow); }
.v3-policy__doc { scroll-margin-top: 110px; color: var(--fig-ink); font-size: 1rem; line-height: 1.8; }
.v3-policy__doc h2 { margin: 0 0 18px; font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.25; letter-spacing: -0.02em; }
.v3-policy__doc h3 { margin: 2.4em 0 0.7em; font-weight: 800; font-size: 1.28rem; line-height: 1.4; letter-spacing: -0.01em; }
.v3-policy__doc h4 { margin: 1.8em 0 0.6em; font-weight: 700; font-size: 1.06rem; line-height: 1.45; }
.v3-policy__doc p, .v3-policy__doc ul, .v3-policy__doc ol { margin: 0 0 1em; }
.v3-policy__doc ul, .v3-policy__doc ol { padding-left: 1.35em; }
.v3-policy__doc li { margin: 0.35em 0; }
.v3-policy__doc li > ul, .v3-policy__doc li > p { margin: 0.35em 0 0; }
.v3-policy__doc strong { font-weight: 700; }
.v3-policy__doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: #f1f1f1; overflow-wrap: anywhere; }
.v3 .v3-policy__doc a { text-decoration: underline; text-decoration-color: var(--fig-muted); text-underline-offset: 3px; }
.v3 .v3-policy__doc a:hover { color: var(--fig-eyebrow); }
.v3-policy__doc blockquote { margin: 0 0 1.4em; padding: 14px 18px; border-left: 3px solid var(--fig-eyebrow); border-radius: 0 12px 12px 0; background: #faf6f0; color: var(--fig-sec); }
.v3-policy__doc blockquote p { margin: 0; }
.v3-policy__table { margin: 0 0 1.4em; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px #e7e7e7; }
.v3-policy__doc table { width: 100%; border-collapse: collapse; font-size: 0.94rem; line-height: 1.65; }
.v3-policy__doc th, .v3-policy__doc td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #ececec; }
.v3-policy__doc th { font-weight: 700; background: var(--fig-surface); }
.v3-policy__doc tr:last-child td { border-bottom: 0; }
.v3-policy__doc td:first-child { width: 34%; }
.v3-policy__rule { margin: clamp(56px, 7vw, 96px) 0; border: 0; border-top: 1px solid #e3e3e3; }
@media (max-width: 600px) {
  /* Two narrow columns squeeze each label into a tower of short lines: stack label over value. */
  .v3-policy__doc thead { display: none; }
  .v3-policy__doc tr { display: block; padding: 12px 14px; border-bottom: 1px solid #ececec; }
  .v3-policy__doc tr:last-child { border-bottom: 0; }
  .v3-policy__doc td, .v3-policy__doc td:first-child { display: block; width: auto; padding: 0; border: 0; }
  .v3-policy__doc td:first-child { margin-bottom: 4px; font-weight: 700; }
}

