/* Shared editorial rules for every page. Product demonstration rules live in site.css. */
:root { --paper:#fff; --ink:#17252c; --muted:#58666e; --blue:#0866e8; --blue-dark:#0053c4; --sky:#edf4fc; --line:#dce1e5; --surface:#f4f6f8; }
[hidden] { display:none!important; }
img { display:block; }
h1,h2,h3 { font-weight:500; }
.wrap,.container { width:min(1328px,calc(100% - 112px)); margin-inline:auto; }
.eyebrow { color:var(--muted); font-size:14px; letter-spacing:.035em; font-weight:500; }
.eyebrow::before { display:none; }
.site-header { position:relative; z-index:20; background:var(--paper); }
.header-inner { min-height:100px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-nav { display:flex; gap:34px; align-items:center; font-size:15px; }
.site-nav a { padding-block:10px; }
.site-nav a:hover,.site-nav a[aria-current],.footer-links a:hover { color:var(--blue); }
.language-switch { display:flex; align-items:center; gap:4px; font-size:14px; }
.language-switch button { min-width:31px; min-height:40px; padding:4px; background:transparent; color:var(--muted); }
.language-switch button.active { color:var(--ink); font-weight:600; }
.language-switch>span { color:#78848b; }
.button { min-height:54px; padding:13px 27px; }
.button.small { min-height:44px; padding:10px 22px; white-space:nowrap; }
.menu-toggle { display:none; }
.site-footer { padding-block:64px 30px; }
.footer-brand p { font-size:15px; }
.footer-links { font-size:15px; gap:28px; }
.footer-links a { padding-block:8px; }
.footer-bottom { padding-top:25px; margin-top:48px; font-size:13px; }
.hero { display:block; min-height:0; padding-top:68px; padding-bottom:0; }
.hero-copy { text-align:center; max-width:950px; margin:auto; animation:none; }
.hero .eyebrow { justify-content:center; }
html[lang] .hero h1 { font-size:clamp(52px,5.3vw,80px); line-height:1.18; margin:24px 0; font-weight:500; }
html[lang] .hero-copy>p { font-size:19px; line-height:1.9; max-width:650px; margin:auto; }
.hero-buttons { justify-content:center; gap:24px; margin-top:29px; }
.life-visual { position:relative; height:510px; margin-top:58px; border-radius:30px; overflow:hidden; background:var(--surface); }
.life-visual>img { width:100%; height:100%; object-fit:cover; object-position:center 47%; }
.agent-note { position:absolute; bottom:35px; left:35px; width:320px; padding:22px 25px; border-radius:21px; background:#fffffff0; box-shadow:0 12px 40px #17252c18; backdrop-filter:blur(16px); }
.agent-note-label { display:flex; align-items:center; gap:9px; font-weight:600; font-size:14px; margin-bottom:12px; }
.agent-note-label svg { width:23px; height:23px; color:var(--blue); }
.agent-note>p { font-size:19px; line-height:1.6; letter-spacing:-.02em; }
.agent-note>small { display:block; font-size:12px; margin-top:12px; color:var(--muted); }
.hero-bottom { padding-block:30px; font-size:15px; }
.hero-bottom>p { font-size:15px; }
.section-head>p,.scenario-story p,.memory-copy>p { font-size:17px; }
.scenario-panel,.control { background:var(--surface); border-radius:28px; }
.scenario-panel { gap:40px; padding:20px; }
.conversation { background:white; border:0; }
.chat-agent { font-size:16px; }
.control h2 { font-size:38px; }
.control-item h3 { font-size:19px; }
.control-item p { font-size:15px; }
.faq-list summary { font-size:18px; }
.faq-list details p { font-size:16px; }
.closing { background:var(--sky); color:var(--ink); }
.closing p { color:var(--muted); font-size:17px; }
.closing .button { background:var(--blue); color:white; }
.closing .button:hover { background:var(--blue-dark); }
.closing::after { display:none; }
.closing-hand { font-family:var(--display); font-style:normal; font-weight:500; }
.app-photo { width:100%; height:430px; object-fit:cover; border-radius:28px; margin-bottom:60px; }
.app-capability h2 { font-size:28px; }
.app-capability p { font-size:17px; }
.app-start .hero-buttons { justify-content:flex-start; }
.journal-intro { padding:75px 0 60px; }
.journal-intro h1 { font-size:clamp(48px,5vw,72px); line-height:1.2; margin:18px 0 22px; }
.journal-intro p { font-size:19px; color:var(--muted); max-width:600px; line-height:1.9; }
.journal-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:48px; padding-bottom:100px; }
.journal-card { display:flex; flex-direction:column; }
.journal-cover { display:block; overflow:hidden; border-radius:23px; background:var(--surface); aspect-ratio:1.55; margin-bottom:25px; }
.journal-cover img { width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.journal-cover:hover img { transform:scale(1.035); }
.tag { display:inline-block; color:var(--blue); font-size:13px; font-weight:500; margin-bottom:12px; }
.journal-card h2 { font-size:27px; line-height:1.4; letter-spacing:-.03em; margin-bottom:17px; }
.journal-card h2 a:hover { color:var(--blue); }
.journal-excerpt { font-size:16px; color:var(--muted); line-height:1.85; margin-bottom:22px; }
.journal-card .meta { margin-top:auto; }
.meta { color:var(--muted); font-size:14px; line-height:1.7; }
.blog-article { max-width:850px; padding-top:65px; padding-bottom:65px; }
.back-link { display:inline-block; color:var(--muted); font-size:15px; padding-block:6px; border-bottom:1px solid var(--line); margin-bottom:35px; }
.back-link:hover { color:var(--blue); }
.blog-article-header h1 { font-size:clamp(35px,4vw,56px); line-height:1.25; margin-bottom:24px; overflow-wrap:anywhere; }
.blog-article-header .meta { margin-bottom:32px; }
.article-cover { margin:36px 0 45px; }
.article-cover img { width:100%; height:auto; aspect-ratio:1.8; object-fit:cover; border-radius:24px; }
.article-body { font-size:18px; line-height:1.95; overflow-wrap:anywhere; }
.article-body p { margin-bottom:24px; }
.article-body h2 { font-size:29px; margin:45px 0 17px; line-height:1.4; letter-spacing:-.035em; }
.article-body h3 { font-size:23px; margin:30px 0 14px; line-height:1.5; }
.article-body ul,.article-body ol { padding-left:25px; margin:20px 0 27px; }
.article-body li { padding-left:3px; margin-block:10px; }
.article-body a { color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
.article-body blockquote { margin:35px 0; border-left:3px solid var(--blue); padding:10px 0 10px 26px; font-size:23px; line-height:1.7; }
.insight-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin:35px 0; }
.insight-card { padding:22px; background:var(--surface); border-radius:17px; }
.insight-card strong { font-size:16px; font-weight:600; line-height:1.5; display:block; margin-bottom:10px; }
.insight-card p { font-size:15px; line-height:1.85; color:var(--muted); margin:0; }
.document-page .blog-article { max-width:800px; }
.document-page .blog-article-header { margin-bottom:40px; padding-bottom:30px; border-bottom:1px solid var(--line); }
.document-page .blog-article-header h1 { margin-top:15px; margin-bottom:0; }
.invite-page { display:grid; gap:20px; max-width:680px; padding-block:55px 75px; }
.invite-card { padding:40px; background:var(--surface); border-radius:26px; }
.invite-eyebrow { color:var(--blue); font-size:14px; margin-bottom:15px; }
.invite-from { font-size:17px; margin-bottom:15px; }
.invite-card h1 { font-size:40px; line-height:1.25; margin-bottom:23px; }
.invite-lede { color:var(--muted); font-size:17px; line-height:1.85; margin-bottom:25px; }
.invite-code-block { display:flex; align-items:center; flex-wrap:wrap; gap:14px; padding:23px; background:white; border-radius:18px; }
.invite-code-label { flex-basis:100%; color:var(--muted); font-size:14px; }
.invite-code { font:600 clamp(25px,7vw,34px)/1.4 ui-monospace,"SF Mono",monospace; letter-spacing:.1em; user-select:all; flex:1 1 auto; }
.invite-copy { min-height:43px; padding:8px 20px; background:var(--blue); color:white; border-radius:99px; font-size:15px; }
.invite-copy.is-copied { background:var(--blue-dark); }
.invite-steps { padding-left:22px; margin-block:28px; display:grid; gap:13px; font-size:16px; }
.store-row { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:25px; }
.store-badge { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; min-height:60px; background:var(--ink); color:white; border-radius:14px; padding:10px 20px; font-size:18px; line-height:1.35; }
.store-badge span { font-size:12px; }
.store-badge.is-primary { outline:3px solid var(--blue); outline-offset:3px; }
.invite-open-app { display:block; padding:13px 20px; border:1px solid var(--blue); color:var(--blue); border-radius:99px; text-align:center; margin-bottom:14px; }
.invite-note { color:var(--muted); font-size:14px; margin-bottom:22px; }
.invite-privacy { border-top:1px solid var(--line); padding-top:22px; color:var(--muted); font-size:14px; line-height:1.85; }
.invite-wechat { background:var(--sky); padding:22px; border-radius:18px; font-size:16px; }
.not-found { max-width:650px; padding-block:100px; text-align:center; }
.not-found h1 { font-size:55px; line-height:1.25; margin:18px 0 25px; }
.not-found>p { font-size:18px; color:var(--muted); }
.not-found .button { margin-top:30px; }
@media(max-width:1100px) {
  .wrap,.container { width:calc(100% - 72px); }
  .site-nav { gap:24px; }
  .header-actions { gap:14px; }
  .journal-grid { gap:30px; }
  .journal-card h2 { font-size:23px; }
}
@media(max-width:800px) {
  .wrap,.container { width:calc(100% - 44px); }
  .header-inner { min-height:82px; gap:14px; }
  .header-actions { gap:12px; }
  .header-actions>.button { display:none; }
  .menu-toggle { display:flex; gap:7px; align-items:center; justify-content:center; min-height:44px; padding:7px 0 7px 7px; background:transparent; font-size:14px; }
  .menu-toggle svg { width:20px; height:20px; }
  .site-nav { display:none; position:absolute; top:82px; left:0; right:0; padding:15px 22px 25px; background:white; box-shadow:0 15px 25px #17252c12; border-bottom:1px solid var(--line); }
  .site-nav.is-open { display:flex; flex-direction:column; align-items:stretch; gap:3px; }
  .site-nav a { padding:11px 5px; font-size:17px; }
  .hero { padding-top:44px; }
  html[lang] .hero h1 { font-size:clamp(43px,7vw,62px); margin-block:22px; }
  html[lang] .hero-copy>p { font-size:17px; line-height:1.85; }
  .life-visual { margin-top:38px; height:470px; border-radius:24px; }
  .life-visual>img { object-position:55% center; }
  .agent-note { bottom:20px; left:20px; right:20px; width:auto; max-width:320px; padding:19px 22px; }
  .hero-bottom,.hero-bottom>p { font-size:14px; }
  .section-head>p,.scenario-story p,.memory-copy>p { font-size:16px; }
  .scenario-panel { padding:15px; gap:0; }
  .control h2 { font-size:32px; }
  .closing h2 { font-size:35px; }
  .site-footer { padding-top:45px; }
  .footer-links { gap:13px 25px; }
  .footer-bottom { margin-top:30px; }
  .app-photo { height:340px; margin-bottom:40px; }
  .app-capability h2 { font-size:24px; }
  .app-capability p { font-size:16px; }
  .journal-intro { padding:50px 0 40px; }
  .journal-intro h1 { font-size:48px; }
  .journal-intro p { font-size:17px; }
  .journal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px 25px; padding-bottom:65px; }
  .journal-card h2 { font-size:24px; }
  .blog-article { padding-block:45px; }
  .blog-article-header h1 { font-size:39px; }
  .article-body { font-size:17px; }
  .article-body h2 { font-size:27px; }
  .article-cover { margin-block:25px 35px; }
  .article-cover img { aspect-ratio:1.4; border-radius:20px; }
  .insight-grid { grid-template-columns:1fr; }
  .invite-page { padding-block:35px 45px; }
  .invite-card { padding:30px 25px; }
  .invite-card h1 { font-size:34px; }
}
@media(max-width:520px) {
  .wrap,.container { width:calc(100% - 36px); }
  .header-inner { gap:10px; }
  .header-actions { gap:8px; }
  .brand { font-size:25px; gap:7px; }
  .brand svg { width:26px; height:26px; }
  .language-switch { font-size:13px; gap:0; }
  .language-switch button { min-width:27px; }
  .menu-toggle { font-size:13px; gap:4px; }
  html[lang] .hero h1 { font-size:42px; }
  html[lang] .hero-copy>p { font-size:16px; }
  .hero-buttons { gap:17px; }
  .life-visual { height:390px; }
  .agent-note { left:15px; bottom:15px; right:15px; }
  .agent-note>p { font-size:17px; }
  .life-topics { gap:15px; font-size:12px; }
  .life-topics>span { gap:5px; }
  .life-topics svg { width:16px; height:16px; }
  .closing h2 { font-size:30px; }
  .footer-links { font-size:14px; }
  .journal-grid { grid-template-columns:1fr; gap:48px; }
  .journal-cover { margin-bottom:21px; }
  .journal-card h2 { font-size:27px; }
  .journal-excerpt { margin-bottom:16px; }
  .journal-intro h1 { font-size:44px; }
  .blog-article-header h1 { font-size:34px; }
  .article-body { font-size:16px; line-height:2; }
  .article-body h2 { font-size:25px; }
  .article-body blockquote { font-size:21px; }
  .app-photo { height:280px; }
  .invite-card { padding:27px 20px; }
  .invite-card h1 { font-size:30px; }
  .invite-code-block { padding:18px; gap:12px; }
  .invite-code { font-size:26px; }
  .invite-copy { padding-inline:16px; }
  .store-badge { flex:1 1 100%; align-items:center; }
  .not-found h1 { font-size:42px; }
}

.document-page .eyebrow,.journal-intro .eyebrow { justify-content:flex-start; }

/* Stable language links and sourced editorial notes. */
.language-switch a { display:inline-flex; align-items:center; justify-content:center; min-width:31px; min-height:40px; padding:4px; color:var(--muted); }
.language-switch a.active { color:var(--ink); font-weight:600; }
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; color:var(--muted); font-size:14px; line-height:1.8; margin:0 0 30px; overflow-wrap:anywhere; }
.breadcrumbs a:hover { color:var(--blue); }
.breadcrumbs [aria-current] { max-width:100%; }
.editorial-note { background:var(--sky); padding:19px 22px; border-radius:16px; margin:0 0 30px; }
.editorial-note p { margin:0; font-size:14px; line-height:1.85; }
.article-sources,.related-articles { margin-top:40px; border-top:1px solid var(--line); }
.app-guide { max-width:850px; margin:0 auto 65px; }
.app-guide h2 { font-size:36px; margin:0 0 30px; line-height:1.4; }
.app-guide h3 { font-size:24px; margin:30px 0 15px; }
.app-guide p { color:var(--muted); font-size:17px; line-height:1.9; margin-bottom:15px; }
.invite-availability { background:white; border-radius:18px; padding:20px; margin:0 0 25px; }
.invite-availability p { color:var(--muted); font-size:15px; margin-bottom:16px; }
@media(max-width:520px) { .language-switch a { min-width:27px; }.app-guide h2 { font-size:30px; }.app-guide p { font-size:16px; }.breadcrumbs { font-size:13px; } }

/* Optional analytics uses the same site controls and stays off until chosen. */
.footer-links button { font:inherit; color:inherit; background:transparent; border:0; padding-block:8px; cursor:pointer; }
.footer-links button:hover { color:var(--blue); }
.analytics-notice { position:fixed; z-index:50; bottom:20px; right:20px; left:20px; margin-left:auto; max-width:680px; padding:23px; border:1px solid var(--line); border-radius:20px; background:var(--paper); box-shadow:0 8px 32px #17252c20; }
.analytics-notice h2 { font-size:21px; line-height:1.4; margin:0 0 10px; }
.analytics-notice p { font-size:15px; line-height:1.8; color:var(--muted); margin:0 0 18px; }
.analytics-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.analytics-actions .analytics-decline { background:transparent; color:var(--blue); border:1px solid var(--blue); }
.analytics-actions .text-link { font-size:14px; }
.analytics-actions button:disabled { opacity:.6; cursor:default; }
@media(max-width:520px) { .analytics-notice { bottom:12px; left:12px; right:12px; padding:19px; }.analytics-notice h2 { font-size:20px; }.analytics-actions { gap:10px; } }
