/* PawConnect website, second design (batch C5b). Mobile first, no framework, no external requests. Coral and cream (brand), one display face (Bricolage
   Grotesque) used large, Nunito for reading. Motion is an enhancement: it is off under prefers-reduced-motion and when the visitor pauses it. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/bricolage-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/nunito-latin-variable.woff2") format("woff2"); }

:root {
  --bg: #fff8f4;
  --bg-2: #ffefe7;
  --ink: #29262d;
  --muted: #5d5358;
  --line: #ead9d0;
  --coral: #ff7f6e;          /* the brand colour: used as a field with dark text on it */
  --coral-text: #b9402f;     /* coral as text or a link on cream: 5.6:1 */
  --button: #29262d;
  --on-button: #fff8f4;
  --field-ink: #29262d;
  --card: #ffffff;
  --lav: #6a58d8;
  --deep: #29262d;           /* the closing section: a deep field, so it does not sit next to the coral About field */
  --on-deep: #fff8f4;
  --on-deep-muted: #d8cdc6;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Nunito", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #171211; --bg-2: #211a19; --ink: #f6ece7; --muted: #c8bab3; --line: #3a2f2c; --coral-text: #ff9a8b; --button: #ff7f6e; --on-button: #231716; --card: #261e1c; --lav: #b3a8ff; --deep: #2b2120; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #171211; --bg-2: #211a19; --ink: #f6ece7; --muted: #c8bab3; --line: #3a2f2c; --coral-text: #ff9a8b; --button: #ff7f6e; --on-button: #231716; --card: #261e1c; --lav: #b3a8ff; --deep: #2b2120; }
}
:lang(zh-Hans) { --display: "Bricolage Grotesque", "Noto Sans SC PC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; --text: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--text); overflow-x: clip; }
:lang(zh-Hans) body { line-height: 1.75; letter-spacing: .01em; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- type ---- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin: 0; text-wrap: balance; }
:lang(zh-Hans) .display, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: -.01em; line-height: 1.12; line-break: strict; word-break: auto-phrase; }
h1 { font-size: clamp(46px, 11vw, 120px); }
@media (min-width: 900px) { h1 { font-size: clamp(64px, 7.9vw, 116px); } }
h2 { font-size: clamp(36px, 7.4vw, 84px); }
h3 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.02; }
.eyebrow { margin: 0 0 18px; font: 800 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); }
:lang(zh-Hans) .eyebrow { letter-spacing: .08em; font-size: 14px; }
.lead { margin: 22px 0 0; max-width: 31em; font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); text-wrap: pretty; }
.fine { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.fine a, .step a, .faq a { color: var(--coral-text); text-underline-offset: 3px; }
.step a.btn { color: var(--on-button); }
.fn { color: var(--coral-text); text-decoration: none; margin-left: .08em; font-weight: 800; }
.fn:hover { text-decoration: underline; }
.closing a:not(.badge) { text-underline-offset: 3px; }

/* ---- buttons and links ---- */
.badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.badge img { height: 52px; width: auto; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(41, 38, 45, .22); }
.badge:active { transform: translateY(0) scale(.98); }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--button); color: var(--on-button); font: 800 15px/1 var(--display); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(41, 38, 45, .2); }
.btn:active { transform: scale(.98); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font: 800 16px/1 var(--display); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(50% + 11px) / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.text-link:hover { background-size: 100% 2px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 8px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font: 800 21px/1 var(--display); letter-spacing: -.03em; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.nav { display: none; gap: 2px; }
.nav a, .menu__panel a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 700 15px/1 var(--display); text-decoration: none; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .menu__panel a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current], .menu__panel a[aria-current] { color: var(--ink); background: var(--bg-2); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); font: 800 13px/1 var(--display); }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--ink); color: var(--bg); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink); cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.theme-toggle:hover { transform: rotate(14deg); }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; } }
.header-cta { padding: 0 14px; font-size: 14px; white-space: nowrap; }
.menu { position: relative; }
.menu summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--bg-2); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bg); }
.menu__panel { position: absolute; right: 0; top: 52px; z-index: 40; display: grid; gap: 2px; min-width: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: 0 24px 50px -20px rgba(41, 20, 12, .35); }
.menu__panel a { border-radius: 12px; }
@media (max-width: 519px) { .lang span[aria-current] { display: none; } .lang { padding: 0; background: none; } .lang a { background: var(--bg-2); } .site-header .wrap { gap: 6px; } .header-cta { padding: 0 12px; } }
@media (max-width: 479px) { .brand span { display: none; } }
@media (max-width: 359px) { .site-header .wrap { gap: 4px; padding: 0 14px; } .header-cta { padding: 0 10px; font-size: 13px; } }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } .site-header .wrap { gap: 10px; } }

/* ---- the phone: drawn in CSS, neutral, not a copy of any device ---- */
.phone { --w: 320px; position: relative; width: var(--w); max-width: 100%; margin: 0; padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .165); background: linear-gradient(145deg, #3a3a40, #101012 38%, #1d1d21); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset, 0 40px 80px -24px rgba(41, 20, 12, .45), 0 18px 36px -18px rgba(41, 20, 12, .35); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 3px; background: #26262b; }
.phone::before { left: -3px; top: 17%; height: 6%; box-shadow: 0 calc(var(--w) * .17) 0 #26262b; }
.phone::after { right: -3px; top: 24%; height: 13%; }
.screen { position: relative; aspect-ratio: 1320 / 2868; overflow: hidden; border-radius: calc(var(--w) * .135); background: #fff0eb; isolation: isolate; }
.screen .layer { position: absolute; inset: 0; }
.screen img, .screen video, .screen svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; z-index: 3; left: 50%; top: calc(var(--w) * .062); width: 27%; height: calc(var(--w) * .075); margin-left: -13.5%; border-radius: 99px; background: #08080a; pointer-events: none; }
.screen video { opacity: 0; transition: opacity .35s; }
.screen video.playing { opacity: 1; }

.phonebox { position: relative; display: grid; place-items: center; }
.pause-btn { position: absolute; right: -10px; bottom: 6%; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; pointer-events: auto; }
.pause-btn::before { content: ""; position: absolute; inset: 6px; border-radius: 99px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line), 0 6px 14px -6px rgba(41, 20, 12, .35); transition: transform .2s var(--ease); }
.pause-btn svg { position: relative; }
.pause-btn:hover::before { transform: scale(1.08); }
.pause-btn .ico-play, .pause-btn[aria-pressed="true"] .ico-pause { display: none; }
.pause-btn[aria-pressed="true"] .ico-play { display: block; }
@media (prefers-reduced-motion: reduce) { .pause-btn { display: none; } }

/* ---- the Today carousel (batch WEB2): real pictures instead of a recording; dots under the hero phone ---- */
.carousel { position: absolute; inset: 0; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.carousel .slide.is-on { opacity: 1; }
.carousel .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.phonebox:has(.carousel__dots) { grid-template-rows: auto auto; }
.carousel__dots { display: flex; justify-content: center; margin-top: 6px; }
.carousel__dots button { display: grid; place-items: center; width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .35s var(--ease), background .35s; }
.carousel__dots button[aria-current="true"]::before { width: 24px; background: var(--coral-text); }
.carousel__dots button:hover::before { background: var(--muted); }
.carousel__dots button[aria-current="true"]:hover::before { background: var(--coral-text); }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero .wrap { display: grid; gap: 44px; align-items: center; position: relative; }
.hero__stage { position: relative; display: grid; place-items: center; min-height: 420px; }
/* EXPLORE6 (owner, 19 Nov: "the mascot head is a cheap one, use the good mascot from the app, only the head"): the app's Ragdoll peeks over
   the top of the phone, its chin behind the phone's edge, on a small coral disc (it was the logo's outline, 640 px, behind the phone). */
.hero__stage { padding-top: clamp(96px, 11vw, 150px); }
.hero .phonebox { position: relative; }
.hero__mark { position: absolute; left: 50%; top: 0; width: 66%; aspect-ratio: 1; transform: translate(-28%, -58%) rotate(6deg); z-index: 0; pointer-events: none; }
.hero__mark::before { content: ""; position: absolute; inset: 8% 4% 0 4%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffc2b8, var(--coral) 72%); }
.hero__mark::after { content: ""; position: absolute; inset: 0; background: url("/assets/brand/mascot-ragdoll-head.webp") center 20% / 92% auto no-repeat;
  animation: hero-peek .9s .3s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes hero-peek { from { transform: translateY(26%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__mark::after { animation: none; } }
.hero .phone { --w: min(300px, 68vw); z-index: 1; transform: rotate(-2.5deg); }
.ln { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; }
.ln.accent { color: var(--coral-text); }
.hero-note { margin-top: 20px; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
  .hero .phone { --w: min(340px, 28vw); }
  .hero__stage { min-height: 640px; }
}

/* ---- the founder: coral is a field here, with dark text on it ---- */
.field { background: var(--coral); color: var(--field-ink); padding: clamp(64px, 10vw, 140px) 0; position: relative; }
.field .eyebrow, .field .fine, .field a { color: var(--field-ink); }
.field .eyebrow { opacity: 1; }
.creator { display: grid; gap: 44px; align-items: center; }
.creator blockquote { margin: 0; }
.creator blockquote p:not(.byline) { font: 800 clamp(30px, 5.6vw, 64px)/1.04 var(--display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
:lang(zh-Hans) .creator blockquote p:not(.byline) { letter-spacing: -.01em; line-height: 1.22; font-size: clamp(27px, 4.6vw, 52px); }
.creator .byline { margin: 22px 0 0; font: 700 14px/1.4 var(--text); letter-spacing: .01em; opacity: .85; }
.player { width: min(100%, 380px); margin: 0 auto; }
@media (min-width: 900px) { .creator { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 120px); } .player { margin: 0 0 0 auto; } }
.player__box { position: relative; container-type: inline-size; aspect-ratio: 1080 / 1512; overflow: hidden; border-radius: 26px; background: #2b2523; box-shadow: 0 34px 70px -26px rgba(60, 20, 10, .6); }
.player__box video { width: 100%; height: 100%; object-fit: cover; background: #2b2523; }
.cap { position: absolute; left: 6%; right: 6%; bottom: 17%; text-align: center; pointer-events: none; font: 700 clamp(15px, 5.6cqw, 23px)/1.28 var(--display); color: #fff; letter-spacing: -.005em; text-wrap: balance; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 14px rgba(0, 0, 0, .5), 0 0 28px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(5px); transition: opacity .22s ease, transform .22s ease; }
.cap.on { opacity: 1; transform: none; }
.player details { margin-top: 14px; }
.player summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 800 15px/1 var(--display); }
.transcript p { margin: 0 0 10px; font-size: 16px; }

/* ---- the Android notice: a badge-shaped twin of the App Store badge, never a link ---- */
.soon { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--muted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); user-select: none; cursor: default; }
.soon sup { font-size: .5em; font-weight: 700; margin-left: 1px; vertical-align: super; line-height: 0; }
.soon__t { display: grid; line-height: 1; }
.soon small { font: 600 11px/1 var(--display); letter-spacing: .02em; }
.soon b { margin-top: 3px; font: 800 22px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.closing .soon { background: rgba(255, 248, 244, .08); box-shadow: inset 0 0 0 1px rgba(255, 248, 244, .22); color: var(--on-deep-muted); }
.closing .soon b { color: var(--on-deep); }

/* ---- the story: one phone stays, the screen changes ---- */
.story { padding: clamp(64px, 9vw, 130px) 0 clamp(20px, 4vw, 60px); position: relative; }
.story__head { max-width: 900px; min-height: 84svh; display: flex; flex-direction: column; justify-content: center; }   /* batch WEB3: the start of the app story is a screen of its own, so "The app" and "PawAI" land a full screen apart */
.story__intro { margin: 22px 0 0; max-width: 28em; font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); text-wrap: pretty; }
.story__grid { position: relative; display: block; margin-top: clamp(36px, 6vw, 72px); }
.stage { position: sticky; top: 66px; z-index: 5; display: grid; place-items: center; height: min(46svh, 420px); padding: 6px 0 14px; background: linear-gradient(var(--bg) 82%, transparent); pointer-events: none; }
.stage .phone { --w: min(210px, calc(40svh * .56)); pointer-events: auto; }
.stage__dots { display: none; }
.layer { opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s ease, transform .6s var(--ease); }
.layer.on { opacity: 1; transform: none; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.step { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 34px; max-width: 34em; }
.step h3 { margin-bottom: 18px; }
.steps .step:first-child { padding-top: calc(min(46svh, 420px) + 20px); }   /* on a phone the pinned phone covers the top of the screen: the first step starts below it, so "PawAI" lands on readable text */
.step p { margin: 0 0 14px; color: var(--muted); text-wrap: pretty; }
.facts { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font: 700 14px/1.5 var(--display); letter-spacing: .01em; color: var(--ink); }
.facts li + li::before { content: "·"; margin: 0 .6em; color: var(--coral-text); }
.step .kicker { margin: 0 0 14px; color: var(--coral-text); font: 800 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.step .caution { padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
@media (min-width: 900px) {
  .story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); gap: clamp(32px, 6vw, 110px); }
  .stage { order: 2; top: 0; height: 100svh; padding: 0; background: none; }
  .stage .phone { --w: min(360px, calc(80svh * .46)); }
  .stage::before { content: ""; position: absolute; z-index: -1; width: min(520px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--bg-2); }
  .stage__dots { display: flex; flex-direction: column; gap: 10px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; }
  .stage__dots li { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: height .35s var(--ease), background .35s; }
  .stage__dots li.on { height: 28px; background: var(--coral-text); }
  .steps { order: 1; }
  .step { min-height: 92svh; padding: 0; }
  .steps .step:first-child { padding-top: 0; }
}

/* ---- document pages (support, report a problem, privacy, terms): the same shell and type as the home page ---- */
.doc { padding: clamp(28px, 5vw, 72px) 0 clamp(56px, 8vw, 110px); }
.doc__grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.doc h1 { font-size: clamp(38px, 5.6vw, 72px); }
:lang(zh-Hans) .doc h1 { font-size: clamp(34px, 4.8vw, 60px); }
.doc__side .meta { margin: 18px 0 0; font: 700 14px/1.5 var(--text); color: var(--muted); }
.doc__side .zh-note { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); font-size: 15px; line-height: 1.6; }
.doc__side .zh-note p { margin: 0; color: var(--ink); }
.toc { display: none; }
.doc__body { min-width: 0; max-width: 46em; }
.doc__body > *:first-child { margin-top: 0; }
.doc__body h2 { margin: 2.1em 0 .6em; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.08; scroll-margin-top: 92px; }
.doc__body h3 { margin: 1.6em 0 .4em; font: 800 19px/1.3 var(--display); letter-spacing: -.01em; }
.doc__body p, .doc__body li { color: var(--muted); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.doc__body li { margin: .35em 0; }
.doc__body strong { color: var(--ink); }
.doc__body a { color: var(--coral-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc__body ul, .doc__body ol { padding-left: 1.3em; }
.doc__body code, .doc__body pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); color: var(--ink); border-radius: 8px; }
.doc__body code { padding: 1px 6px; font-size: .92em; }
.doc__body pre { padding: 18px 20px; white-space: pre-wrap; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); }
.doc__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0 1.2em; }
.doc__body .grid { display: grid; gap: 16px; margin-top: 22px; }
.doc__body .card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.doc__body .card h2, .doc__body .card h3 { margin-top: 0; }
.doc__body .card p { margin: 0 0 10px; }
.doc__body .label { margin: 0 0 10px; font: 800 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); }
.doc__body .cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--button); color: var(--on-button); font: 800 15px/1 var(--display); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.doc__body .cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(41, 38, 45, .2); }
.doc__body em { font-style: normal; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .doc__body .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .doc__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .doc__side { position: sticky; top: 96px; }
  .toc { display: block; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
  .toc p { margin: 0 0 8px; font: 800 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); }
  .toc ol { list-style: none; margin: 0; padding: 0; max-height: 52svh; overflow: auto; }
  .toc a { display: block; padding: 5px 0; font: 700 14px/1.35 var(--display); color: var(--muted); text-decoration: none; }
  .toc a:hover { color: var(--ink); }
}

/* ---- the Back pill of the secondary pages (batch WEB2): small, sticky under the header, 44 px tall ---- */
.backbar { position: sticky; top: 66px; z-index: 20; height: 0; }
.backbar .wrap { padding-top: 10px; }
.back-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px 0 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 800 15px/1 var(--display); text-decoration: none; box-shadow: 0 6px 18px -8px rgba(41, 20, 12, .5); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.back-pill:hover { transform: translateX(-2px); }
.back-pill:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }
:root[data-theme="dark"] .back-pill { background: var(--button); color: var(--on-button); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .back-pill { background: var(--button); color: var(--on-button); } }
.backbar + * { margin-top: 0; }
main > .backbar ~ .pawai-hero { padding-top: clamp(76px, 9vw, 96px); }
main > .backbar ~ .doc__grid { padding-top: 58px; }

/* ---- closing, questions, footer ---- */
.closing { position: relative; overflow: clip; padding: clamp(80px, 12vw, 170px) 0; background: var(--deep); color: var(--on-deep); }
/* EXPLORE6 (owner, 19 Nov: "the mascot head is a cheap one, use the good mascot from the app, only the head"): the app's Ragdoll, head only,
   peeking up from the bottom edge of the closing field (it was the logo's outline, tinted coral). */
.closing::after { content: ""; position: absolute; right: clamp(12px, 6vw, 96px); bottom: 0; width: clamp(150px, 34vw, 430px); aspect-ratio: 640 / 580;
  background: url("/assets/brand/mascot-ragdoll-head.webp") center bottom / contain no-repeat; filter: drop-shadow(0 -10px 40px rgba(255, 127, 110, .18)); pointer-events: none;
  animation: closing-peek 1.2s cubic-bezier(.2, .7, .1, 1) both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
@keyframes closing-peek { from { transform: translateY(38%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .closing::after { animation: none; } }
@media (max-width: 700px) { .closing { padding-bottom: clamp(150px, 40vw, 220px); } }
.closing .wrap { position: relative; z-index: 1; }
.closing h2 { max-width: 11em; font-size: clamp(44px, 9vw, 120px); }
.closing p { max-width: 34em; margin: 22px 0 0; color: var(--on-deep-muted); }
.closing .fine { color: var(--on-deep-muted); }
.closing a:not(.badge) { color: var(--on-deep); }
.closing :focus-visible { outline-color: #ffd0c6; }
.faq { padding: clamp(56px, 8vw, 110px) 0; }
.faq h2 { font-size: clamp(34px, 5.6vw, 64px); margin-bottom: 30px; }
/* the one question list of the whole site (batch WEB2): home questions, the PawAI lists, Support questions; lines between the items, a plus that becomes a minus */
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 800 clamp(18px, 2.6vw, 22px)/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--coral-text); }
.acc summary::after { content: ""; flex: none; width: 16px; height: 16px; color: var(--coral-text); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: background-size .3s var(--ease), transform .35s var(--ease); }
.acc details[open]:not(.is-closing) summary::after { background-size: 100% 2px, 2px 0; transform: rotate(180deg); }
.acc__body { overflow: hidden; }
.acc .acc__body p { margin: 0 0 12px; max-width: 42em; color: var(--muted); font: 400 18px/1.6 var(--text); text-wrap: pretty; }
:lang(zh-Hans) .acc .acc__body p { line-height: 1.75; }
.acc .acc__body > :last-child { margin-bottom: 20px; }
.acc .acc__body a { color: var(--coral-text); text-underline-offset: 3px; }
.faq { padding: clamp(56px, 8vw, 110px) 0; }
.faq h2 { font-size: clamp(34px, 5.6vw, 64px); margin-bottom: 30px; }
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1 var(--display); text-decoration: none; color: var(--ink); }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.site-footer .footnote { max-width: 62em; font-size: 14px; line-height: 1.55; scroll-margin-top: 96px; }
.site-footer .credit { max-width: 62em; font-size: 13px; line-height: 1.55; }
.site-footer .credit a { color: inherit; text-underline-offset: 3px; }
/* ---- motion (all of it optional) ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .ln > span { transform: translateY(112%); animation: lineIn .75s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 80ms + 40ms); }
  .hero .eyebrow, .hero .lead, .hero .cta, .hero .fine { transform: translateY(16px); animation: fadeUp .7s var(--ease) forwards; animation-delay: .3s; }
  .hero .lead { animation-delay: .38s; } .hero .cta { animation-delay: .46s; } .hero .fine { animation-delay: .54s; }
  .hero .eyebrow { animation-delay: .05s; }
  .hero .phone { animation: phoneIn .9s var(--ease) both .1s; }
  .hero__mark { animation: markIn 1.4s var(--ease) both .1s; }
  .site-header { animation: fadeDown .7s var(--ease) both; }
  html.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  html.js-reveal .reveal.in { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .reveal { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 4% entry 52%; }
  }
}
@keyframes lineIn { to { transform: none; } }
@keyframes fadeUp { to { transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { transform: translateY(60px) rotate(2deg); } to { transform: rotate(-2.5deg); } }
@keyframes markIn { from { opacity: 0; transform: translate(-28%, -30%) rotate(-6deg) scale(.9); } to { opacity: 1; transform: translate(-28%, -58%) rotate(6deg); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
html[data-paused] *, html[data-paused] *::before, html[data-paused] *::after { animation-play-state: paused !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }
@media print { .site-header, .appx__phone, .pause-btn { display: none; } }

/* ---- the PawAI page (batch AI6): real recorded answers, each next to the phone that shows it ---- */
.pawai-hero { padding: 40px 0 8px; }
.pawai-hero .lead { max-width: 34em; }
.exlist { display: grid; gap: clamp(56px, 9vw, 110px); padding: 56px 0 24px; }
.ex { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .ex { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } .ex:nth-child(even) .ex__phone { order: 2; } }
.ex__phone .phone { --w: 280px; margin: 0 auto; }
.ex h2 { font-size: clamp(30px, 4.6vw, 48px); margin: 0 0 12px; line-height: 1.04; }
.ex .claim { margin: 0 0 18px; color: var(--muted); }
.qa { margin: 18px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.qa .q { margin: 0 0 12px; padding: 8px 14px; width: fit-content; max-width: 100%; border-radius: 16px; background: var(--coral); color: var(--field-ink); font-weight: 700; }
.qa .a-head { margin: 0 0 8px; font: 800 20px/1.25 var(--display); letter-spacing: -.01em; }
.qa .a-head.urgent { color: var(--coral-text); }
.qa p { margin: 0 0 10px; color: var(--ink); }
.qa .block { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: 16px; }
.qa .block b { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-text); }
.qa .block ol { margin: 6px 0 0; padding-left: 20px; }
.qa .src { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.qa .rec { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.band { padding: 56px 0 16px; }
.band h2 { font-size: clamp(30px, 5vw, 56px); margin-bottom: 18px; }
.band p, .band li { max-width: 44em; color: var(--muted); }
.countries { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.countries li { padding: 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.ex .pause-btn { right: max(0px, calc(50% - var(--w, 280px) / 2 - 10px)); }
