/* Article, glossary, comparison and trust pages (approved variant C), plus the shared footer. */
:root {
  --a-ink: #161115; --a-ivory: #f5eddf; --a-paper: #fffaf2; --a-white: #ffffff;
  --a-red: #f0442e; --a-red-dark: #c92e1f; --a-red-aa: #d63a24; --a-muted: #6f6865; --a-line: rgba(22, 17, 21, 0.16); --a-stone: #b9b0aa;
}
.gg-page { background: var(--a-paper); color: var(--a-ink); -webkit-font-smoothing: antialiased; }
.gg-page img { max-width: 100%; height: auto; }

.a-hero { padding-block: 40px 36px; background: var(--a-ivory); border-bottom: 1px solid var(--a-line); }
.a-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.a-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 800; }
.a-crumbs a { color: var(--a-ink); text-decoration: none; min-height: 24px; }
.a-crumbs a:hover { color: var(--a-red-dark); }
.a-crumbs span { color: var(--a-muted); }
.a-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.a-lead { margin: 18px 0 0; color: var(--a-muted); font-size: 19px; line-height: 1.5; text-wrap: pretty; }
.a-meta { margin: 16px 0 0; color: var(--a-muted); font-size: 13px; font-weight: 800; }
.a-cover { display: block; border-radius: 24px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.a-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 26px; }
.a-map a { display: grid; gap: 4px; align-content: start; min-height: 64px; padding: 12px; border-radius: 14px; background: var(--a-white); box-shadow: 0 0 0 1px var(--a-line); color: var(--a-ink); font-size: 13px; font-weight: 800; line-height: 1.25; text-decoration: none; transition-property: box-shadow; transition-duration: .15s; }
.a-map a:hover { box-shadow: 0 0 0 1px var(--a-ink); }
.a-map b { color: var(--a-red-dark); font-size: 12px; }

.a-steps { display: grid; gap: 20px; padding-block: 40px 72px; }
.a-prose { min-width: 0; font-size: 17.5px; line-height: 1.66; text-wrap: pretty; }
.a-prose p, .a-prose ul, .a-prose ol { margin: 0 0 18px; }
.a-prose ul, .a-prose ol { padding-left: 22px; }
.a-prose li { margin-bottom: 8px; }
.a-prose li::marker { color: var(--a-red); font-weight: 900; }
.a-prose h2 { margin: 0 0 14px; font-size: clamp(25px, 3vw, 36px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.a-prose h3 { margin: 22px 0 10px; font-size: 19px; line-height: 1.2; }
.a-prose h2 + h3, .a-prose .chart h3 { margin-top: 0; }
.a-prose strong { font-weight: 900; }
.a-prose a { color: var(--a-red-dark); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.a-prose > :last-child, .a-prose .box > :last-child { margin-bottom: 0; }
.intro { padding-inline: 4px; }
.intro h2 { margin-top: 30px; }
.intro > h2:first-child { margin-top: 0; }

.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 28px; border-radius: 26px; background: var(--a-white); box-shadow: 0 0 0 1px var(--a-line); scroll-margin-top: 90px; }
.step .num { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--a-ink); color: #fff; font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.a-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-bottom: 18px; }
.a-split > * { min-width: 0; }
.a-split > * > :last-child { margin-bottom: 0; }
.a-fig { margin: 0 0 18px; }
.a-fig img { display: block; border-radius: 14px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.a-fig figcaption { margin-top: 8px; color: var(--a-muted); font-size: 14px; line-height: 1.45; }

.tbl-hint { display: none; margin: -10px 0 18px; color: var(--a-muted); font-size: 13px; font-weight: 800; }
.tbl.is-scroll + .tbl-hint { display: block; }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--a-line); background: var(--a-white); }
.tbl.is-scroll { background: linear-gradient(to left, rgba(22,17,21,.10), transparent 22px) right / 22px 100% no-repeat local, linear-gradient(to left, rgba(22,17,21,.10), transparent 22px) right / 22px 100% no-repeat, var(--a-white); }
.tbl table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; vertical-align: top; }
.tbl td { border-top: 1px solid var(--a-line); }
.tbl th { background: var(--a-ink); color: #fff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.check ul { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.check li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; margin: 0; font-size: 15.5px; line-height: 1.45; }
.check li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--a-red-aa) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 18px no-repeat; }
.check li > * { min-width: 0; }
.box { margin: 4px 0 18px; padding: 18px 20px; border-radius: 16px; background: var(--a-ivory); font-size: 15.5px; line-height: 1.55; }
.box p { margin: 0 0 8px; }
.formula ul { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.formula li { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--a-ivory); font-size: 15.5px; line-height: 1.45; }
.formula strong { color: var(--a-red-dark); }

.chart { margin: 0 0 18px; padding: 20px; border-radius: 18px; background: var(--a-paper); box-shadow: 0 0 0 1px var(--a-line); }
.chart h3 { margin: 0 0 4px; font-size: 17px; }
.chart .sub { margin: 0 0 12px; color: var(--a-muted); font-size: 14px; line-height: 1.45; }
.chart svg { display: block; width: 100%; max-width: 460px; height: auto; margin-top: 10px; }
.chart svg text { fill: var(--a-ink); font-family: inherit; }
.seq { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.seq li { position: relative; display: grid; gap: 4px; align-content: start; padding: 0 12px 0 0; margin: 0; }
.seq li::before { content: ""; position: absolute; left: 18px; right: 0; top: 50px; height: 2px; background: var(--a-stone); }
.seq li:last-child::before { display: none; }
.seq .when { color: var(--a-muted); font-size: 13px; font-weight: 800; }
.seq .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 4px 0 6px; border-radius: 50%; background: var(--a-ink); color: #fff; font-size: 15px; font-weight: 900; }
.seq li.stop .dot { background: var(--a-ivory); color: var(--a-red-dark); box-shadow: 0 0 0 1px var(--a-stone); font-size: 12px; }
.seq b { font-size: 15px; line-height: 1.25; }
.seq .what { color: var(--a-muted); font-size: 14px; line-height: 1.4; }

.offers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.offer { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 26px; border-radius: 26px; background: var(--a-ink); color: #fff; }
.offer .tag { padding: 6px 10px; border-radius: 999px; background: var(--a-red-aa); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.offer h3 { margin: 0; font-size: 26px; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.offer p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.5; }
.a-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--a-red-aa); color: #fff; font-weight: 900; text-decoration: none; transition-property: scale, background-color; transition-duration: .12s; }
.a-button:hover { background: var(--a-red-dark); }
.a-button:active { scale: .96; }

.faq details { border-top: 1px solid var(--a-line); }
.faq details:last-child { border-bottom: 1px solid var(--a-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-size: 18px; font-weight: 900; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--a-red); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--a-muted); }

.a-related h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.a-card { display: grid; align-content: start; text-decoration: none; }
.a-card img { display: block; margin-bottom: 14px; border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.term-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.term-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--a-white); box-shadow: 0 0 0 1px var(--a-line); color: var(--a-ink); font-weight: 800; text-decoration: none; }
.term-chip:hover { box-shadow: 0 0 0 1px var(--a-ink); }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.term-card { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: 20px; background: var(--a-white); box-shadow: 0 0 0 1px var(--a-line); color: var(--a-ink); text-decoration: none; }
.term-card:hover { box-shadow: 0 0 0 1px var(--a-ink); }
.term-card h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.term-card p { margin: 0; color: var(--a-muted); font-size: 15.5px; line-height: 1.5; }

.gg-contact .contact-copy h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.04em; }
.gg-contact .contact-copy a { color: inherit; }

/* footer shared by every page */
.gg-footer { padding-block: 36px 28px; }
.gg-footer .gg-footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 24px; }
.gg-footer .gg-footer-top p { margin: 0; font-weight: 800; }
.gg-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gg-footer-cols nav { display: grid; align-content: start; gap: 2px; }
.gg-footer-cols nav p { margin: 0 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.gg-footer-cols a { display: flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 700; text-decoration: none; }
.gg-footer-cols a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .a-hero-grid, .a-split, .offers { grid-template-columns: minmax(0, 1fr); }
  .gg-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .a-hero { padding-block: 28px 26px; }
  .a-lead { font-size: 17px; }
  .a-prose { font-size: 17px; }
  .a-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 22px; }
  .step .num { width: 48px; height: 48px; font-size: 20px; }
  .offer { padding: 22px; border-radius: 22px; }
  .seq { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .seq li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 0; }
  .seq li::before { left: 17px; right: auto; top: 40px; bottom: -14px; width: 2px; height: auto; }
  .seq .dot { grid-row: 1 / span 3; margin: 0; }
  .tbl table { min-width: 0; }
  .tbl.wide table { min-width: 560px; }
  .tbl th, .tbl td { padding: 10px; }
  .tbl th { font-size: 11px; letter-spacing: .04em; }
  .gg-footer-cols a { min-height: 44px; }
  .faq summary { font-size: 17px; }
}
@media (max-width: 400px) {
  .step { padding: 16px; }
  .gg-footer-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .a-button, .a-map a { transition: none; } }

/* Mobile header: brand, products, call to action and language fit in 360px */
@media (max-width: 640px) {
  .site-header .header-cta[data-short]::after { content: attr(data-short); }
  .site-header .language-switcher .lang-toggle { min-width: 44px; min-height: 44px; padding-inline: 8px; gap: 0; }
  .site-header .language-switcher .locale-globe, .site-header .language-switcher .locale-chevron { display: none; }
  .site-header .header-cta { min-height: 44px; }
  .site-header .product-menu summary { min-height: 44px; }
}
@media (max-width: 400px) {
  .site-header { gap: 8px; padding-inline: 12px; }
  .brand img { width: 92px; }
  .site-header .product-menu summary > span:not(.menu-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.site-header .brand { display: inline-flex; align-items: center; min-height: 44px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.privacy-back { display: inline-flex; align-items: center; min-height: 44px; }

/* Article cards (articles hub and "keep reading"), topic chips */
.hub-list { padding-block: 40px 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--a-white); box-shadow: 0 0 0 1px var(--a-line); color: var(--a-ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition-property: box-shadow, background-color, color; transition-duration: .15s; }
.chip:hover { box-shadow: 0 0 0 1px var(--a-ink); }
.chip.is-active { background: var(--a-ink); color: #fff; box-shadow: none; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: 22px; background: var(--a-white); box-shadow: 0 0 0 1px var(--a-line); color: var(--a-ink); text-decoration: none; transition-property: box-shadow, translate; transition-duration: .2s; }
.post-card:hover { box-shadow: 0 0 0 1px var(--a-ink), 0 10px 30px rgba(22,17,21,.08); translate: 0 -2px; }
.post-card[hidden] { display: none; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 16px; border-radius: 12px; }
.post-card-cat { padding-inline: 8px; color: var(--a-red-dark); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.post-card h3 { margin: 10px 0 10px; padding-inline: 8px; font-size: 21px; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.post-card p { margin: 0 0 18px; padding-inline: 8px; color: var(--a-muted); font-size: 15px; line-height: 1.5; }
.post-card-meta { display: flex; justify-content: space-between; margin-top: auto; padding-inline: 8px; font-size: 13px; font-weight: 900; }
.post-card-meta b { color: var(--a-red); }
.a-related { padding-block: 48px 64px; background: var(--a-ivory); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } .post-card h3 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .post-card, .chip { transition: none; } }
.gg-calc [data-campaign-calculator] .lab-section-heading { display: none; }
/* Reserve the calculator's space before the script mounts it (CLS) */
[data-campaign-calculator]:empty { min-height: 787px; }
@media (max-width: 980px) { [data-campaign-calculator]:empty { min-height: 1620px; } }
/* Product hero on phones: keep the 16:9 box while the picture loads (the old rule removed the reserved space: CLS 0.16) */
@media (max-width: 640px) { .product-hero-visual img { aspect-ratio: auto 16 / 9; } }
/* The first screen is visible at once: hiding it until the script runs delayed the largest paint by ~1 s on phones */
.product-hero .reveal, .hero .reveal, main > section:first-child .reveal { opacity: 1; transform: none; }
/* The language switcher is drawn at build time with the same size the script gives it (no header jump) */
.language-switcher-static > .language-switcher { position: static; }
/* Chinese pages name the CJK fonts explicitly: the browser's own fallback search re-laid the first screen (CLS) */
html[lang^="zh"] body, html[lang^="zh"] button, html[lang^="zh"] input, html[lang^="zh"] textarea { font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
/* Header never wraps: menu items stay on one line; on medium screens the button uses its short label */
.site-header .main-nav > a, .site-header .header-cta, .site-header .product-menu summary { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 641px) {
  .site-header .header-cta[data-short] { font-size: 0; }
  .site-header .header-cta[data-short]::after { content: attr(data-short); font-size: 13px; }
}
/* Proof and Learn menus next to Products (owner's review 09.11); on screens up to 980px they move into the Products panel */
.site-header .nav-menu summary { gap: 8px; }
.nav-chevron { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.product-menu[open] .nav-chevron { transform: translateY(2px) rotate(225deg); }
.nav-menu-panel { width: 300px; }
.nav-menu-panel a, .menu-extra a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; grid-template-columns: none; font-size: 14px; font-weight: 800; }
.menu-extra, .site-header .pm-short { display: none; }
@media (max-width: 980px) {
  .site-header .nav-menu { display: none; }
  .menu-extra { display: block; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
  .menu-extra p { margin: 4px 12px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
  .menu-extra a { border-radius: 12px; text-decoration: none; }
  .menu-extra a:hover { background: var(--ivory); }
  .site-header .pm-full { display: none; }
  .site-header .pm-short { display: inline; }
  .site-header .product-menu-panel { max-height: calc(100vh - 84px); overflow-y: auto; }
}
@media (max-width: 1120px) { .site-header .language-switcher .language-current { display: none; } }
/* Owner's rule: text runs the full width of its column */
.lab-source-note, .privacy-intro { max-width: none; }
.gg-page .lab-source-note, .gg-lab .lab-source-note, [data-campaign-calculator] .lab-source-note { max-width: none; }
.hub-more { margin: 28px 0 0; }
