:root {
  color-scheme: light dark;
  --background: #f2f2f7;
  --surface: #fff;
  --raised: #e5e5ea;
  --text: #1c1c1e;
  --secondary: #636368;
  --separator: #d1d1d6;
  --tint: #ff3b30;
  --tint-label: #c9261d;
  --browser-tint: #0064d8;
  --selection: #ffd9d5;
  --ridge: #e5e5ea;
  --ridge-back: #f2f2f7;
  --button-text: #fff;
  --contour: #d1d1d650;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
/* Plain color variables also work in browsers without light-dark(). */
:root[data-color-scheme="dark"] {
  --background: #000;
  --surface: #1c1c1e;
  --raised: #2c2c2e;
  --text: #f5f5f7;
  --secondary: #aeaeb2;
  --separator: #38383a;
  --tint: #ff453a;
  --tint-label: #ff6961;
  --browser-tint: #5fa7ff;
  --selection: #70231e;
  --ridge: #303033;
  --ridge-back: #252528;
  --button-text: #fff;
  --contour: #ffffff0b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-color-scheme="light"]) {
    --background: #000;
    --surface: #1c1c1e;
    --raised: #2c2c2e;
    --text: #f5f5f7;
    --secondary: #aeaeb2;
    --separator: #38383a;
    --tint: #ff453a;
    --tint-label: #ff6961;
    --browser-tint: #5fa7ff;
    --selection: #70231e;
    --ridge: #303033;
    --ridge-back: #252528;
    --button-text: #fff;
    --contour: #ffffff0b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 5px; }
::selection { background: var(--selection); }
.container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 20px; top: 10px; z-index: 5; padding: 8px 16px; border-radius: 8px; color: var(--text); background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; gap: 26px; padding-block: 22px; border-bottom: 1px solid var(--separator); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 650; white-space: nowrap; }
.brand-mark { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); overflow: hidden; position: relative; }
.brand-mark::after { content: ""; position: absolute; top: 14px; left: 0; width: 100%; height: 12px; background: var(--background); }
.site-nav { display: flex; gap: 24px; align-items: center; margin-left: auto; color: var(--secondary); font-size: 14px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.site-nav [aria-current="page"], .site-nav a:hover { color: var(--tint-label); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.contact-link { color: var(--secondary); font-size: 13px; }
.contact-link:hover { color: var(--tint-label); }
.language-picker { display: inline-flex; }
.language-picker select { min-height: 44px; max-width: 126px; padding: 8px 10px; border: 0; border-radius: 9px; background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; }
.eyebrow { font-size: 12px; letter-spacing: .11em; color: var(--secondary); }
.home-main { padding-block: 64px 56px; }
.home-heading { max-width: 760px; margin-bottom: 42px; }
.home-heading h1 { margin-top: 18px; font-size: clamp(34px, 4.7vw, 58px); font-weight: 650; letter-spacing: -.045em; line-height: 1.22; text-wrap: balance; }
.home-heading > p { margin-top: 20px; color: var(--secondary); font-size: 17px; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.product-entry { min-width: 0; }
.product-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 450px; padding: 34px; border-radius: 22px; background: var(--surface); position: relative; overflow: hidden; }
.product-card .app-icon { width: 68px; height: 68px; border-radius: 16px; margin-bottom: 22px; }
.product-card h2 { font-size: 28px; font-weight: 650; }
.product-card .card-slogan { color: var(--secondary); font-size: 15px; margin-top: 10px; max-width: 320px; }
.product-card .product-link { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; margin-top: 16px; font-size: 15px; font-weight: 550; color: var(--browser-tint); }
.product-card.trace .product-link { color: var(--tint-label); }
.product-card .product-link::after { content: "↗"; }
.product-card .product-link::before { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.app-copyright { margin-top: 18px; text-align: center; color: var(--secondary); font-size: 12px; }
.home-footer { padding-bottom: 30px; text-align: center; color: var(--secondary); font-size: 12px; }
.book-art { position: absolute; width: 72%; left: 20%; bottom: -48px; border-radius: 16px; padding: 20px 24px 70px; background: var(--background); pointer-events: none; }
.book-art > p { margin-top: 10px; color: var(--secondary); font-size: 12px; line-height: 2; }
.book-art > strong { font-size: 20px; font-weight: 550; }
.card-landscape { position: absolute; height: 170px; width: 100%; left: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.ridge { position: absolute; left: -4%; right: -4%; height: 67%; bottom: -7%; background: var(--ridge); clip-path: polygon(0 100%, 0 70%, 24% 24%, 40% 53%, 65% 1%, 100% 66%, 100% 100%); }
.ridge.back { bottom: 5%; background: var(--ridge-back); transform: scaleX(-1); }
.card-landscape .ridge { bottom: -25%; height: 110%; }
.card-landscape .ridge.back { bottom: -5%; }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--tint); }
.route-line path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.route-line circle { fill: var(--surface); stroke: currentColor; stroke-width: 3; }
.trace-hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 58px; padding-block: 60px 52px; }
.hero-copy { min-width: 0; }
.app-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.app-identity img { width: 58px; height: 58px; border-radius: 14px; }
.app-identity strong { font-size: 19px; font-weight: 650; display: block; }
.app-identity span { display: block; font-size: 12px; color: var(--secondary); letter-spacing: .04em; }
.trace-hero h1 { font-size: clamp(36px, 4.2vw, 51px); line-height: 1.24; font-weight: 650; letter-spacing: -.04em; text-wrap: balance; }
.trace-hero h1 em { font-style: normal; color: var(--tint-label); }
.trace-slogan { margin-top: 20px; font-size: 18px; font-weight: 550; line-height: 1.6; }
.hero-description { margin-top: 14px; color: var(--secondary); font-size: 15px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 26px; }
.button-primary { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; padding: 11px 21px; border-radius: 12px; background: var(--tint); color: var(--button-text); font-size: 15px; font-weight: 650; }
.text-link { color: var(--tint-label); display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.compatibility { margin-top: 15px; font-size: 12px; color: var(--secondary); }
.journey-art { position: relative; min-width: 0; aspect-ratio: 1.12; background: var(--surface); border-radius: 20px; overflow: hidden; }
.journey-art::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 70% 55%, transparent 0 24px, var(--contour) 25px 26px, transparent 27px 44px); transform: rotate(-22deg) scale(1.4); }
.art-sun { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); opacity: .13; top: 34px; right: 40px; }
.art-kicker { position: absolute; top: 24px; left: 24px; right: 24px; color: var(--secondary); font-size: 10px; letter-spacing: .09em; }
.art-caption { position: absolute; bottom: 18px; left: 18px; right: 18px; display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--surface); border-radius: 14px; }
.art-caption strong { display: block; font-size: 14px; font-weight: 600; }
.art-caption span { display: block; color: var(--secondary); font-size: 12px; }
.icon { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; color: var(--tint); }
.section-heading { display: flex; gap: 30px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-heading h2 { font-size: 27px; font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
.section-heading p { max-width: 340px; color: var(--secondary); font-size: 14px; }
.trace-features { padding-block: 16px 24px; }
.timeline { padding-left: 44px; }
.timeline-card { position: relative; margin-bottom: 16px; padding: 24px 28px; border-radius: 18px; background: var(--surface); }
.timeline-card > .icon { position: absolute; left: -39px; top: 28px; }
.timeline-card::before { content: ""; position: absolute; left: -28px; top: 61px; bottom: -16px; width: 1px; background: var(--separator); }
.timeline-card:last-child::before { display: none; }
.timeline-card h3 { margin-bottom: 8px; font-size: 19px; font-weight: 600; }
.timeline-card p { color: var(--secondary); font-size: 15px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 8px 32px; }
.tool-card { padding: 26px; border-radius: 18px; background: var(--surface); }
.tool-card h3 { font-size: 19px; font-weight: 600; margin-block: 16px 9px; }
.tool-card p { color: var(--secondary); font-size: 14px; }
.privacy-strip { display: flex; align-items: center; gap: 16px; padding: 23px 26px; border-radius: 18px; background: var(--surface); }
.privacy-strip p { flex: 1; color: var(--secondary); font-size: 14px; }
.privacy-strip a { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 24px; padding-block: 30px 38px; margin-top: 26px; color: var(--secondary); font-size: 12px; }
.footer-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--tint-label); }
.legal-header .brand img { width: 38px; height: 38px; border-radius: 9px; }
.legal-header .brand { font-size: 18px; }
.legal-header .header-actions { margin-left: auto; }
.legal-header .text-link { color: var(--secondary); font-size: 13px; }
.legal-main { padding-block: 58px 45px; }
.legal-heading { border-bottom: 1px solid var(--separator); padding-bottom: 30px; }
.legal-heading h1 { font-size: 39px; font-weight: 650; margin-block: 13px; line-height: 1.3; }
.legal-heading p { color: var(--secondary); font-size: 13px; }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 52px; padding-top: 34px; }
.legal-toc { display: flex; flex-direction: column; gap: 8px; align-self: start; position: sticky; top: 28px; }
.legal-toc a { color: var(--secondary); font-size: 13px; line-height: 1.65; padding-block: 8px; }
.legal-toc a:hover { color: var(--tint-label); }
.legal-content { max-width: 760px; overflow-wrap: anywhere; }
.legal-content section { margin-bottom: 30px; scroll-margin-top: 28px; }
.legal-content h2 { font-size: 22px; font-weight: 600; margin-bottom: 13px; }
.legal-content p { font-size: 15px; color: var(--secondary); line-height: 1.95; }
.legal-content p + p { margin-top: 12px; }
.legal-content a { color: var(--tint-label); text-decoration: underline; text-underline-offset: 3px; }
.legal-footer { border-top: 1px solid var(--separator); padding-block: 22px 30px; display: flex; justify-content: space-between; gap: 24px; color: var(--secondary); font-size: 13px; }
/* Download codes stay on white in both appearances and link directly to the store. */
.product-entry { display: flex; flex-direction: column; }
.product-card { min-height: 0; flex: 1; }
.card-app-heading { display: flex; align-items: center; gap: 16px; }
.card-app-heading .app-icon { width: 60px; height: 60px; margin: 0; }
.card-app-heading h2 { font-size: 25px; line-height: 1.3; }
.product-card .card-slogan { min-height: 52px; max-width: none; margin-top: 18px; }
.product-card .product-link { margin-top: 6px; }
.product-card .product-link::before { content: none; }
.card-download { display: flex; gap: 18px; align-items: center; margin-top: 20px; }
.download-qr { display: inline-flex; padding: 10px; background: #fff; border-radius: 14px; flex-shrink: 0; }
.download-qr img { width: 128px; height: 128px; }
.card-download-copy { min-width: 0; }
.card-download-copy > p { font-size: 16px; font-weight: 600; line-height: 1.45; }
.card-download-copy > span { display: block; margin-top: 6px; color: var(--secondary); font-size: 12px; }
.download-store { display: inline-block; margin-top: 12px; color: var(--tint-label); font-size: 13px; }
.product-card.browser .download-store { color: var(--browser-tint); }
.hero-download { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.hero-download-copy { flex: 1; min-width: 0; }
.hero-download .hero-actions { margin-top: 0; }
.hero-qr { flex-shrink: 0; }
.qr-caption { color: var(--secondary); font-size: 12px; text-align: center; margin-top: 8px; }
@media (max-width: 1000px) {
  .site-header { gap: 18px; }
  .site-nav { gap: 17px; font-size: 13px; }
  .header-actions { gap: 14px; }
  .contact-link { font-size: 12px; }
  .trace-hero { gap: 34px; }
  .legal-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .site-header { padding-block: 16px 10px; flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 19px; }
  .header-actions { margin-left: auto; gap: 12px; }
  .language-picker select { font-size: 12px; max-width: 112px; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: space-between; gap: 14px; font-size: 13px; }
  .home-main { padding-block: 38px 32px; }
  .home-heading { margin-bottom: 30px; }
  .home-heading h1 { font-size: clamp(32px, 8vw, 46px); }
  .home-heading > p { font-size: 15px; }
  .products { grid-template-columns: 1fr; gap: 32px; }
  .product-card { min-height: 425px; padding: 28px; }
  .product-card .app-icon { width: 60px; height: 60px; }
  .product-card h2 { font-size: 26px; }
  .book-art { bottom: -60px; }
  .trace-hero { display: flex; flex-direction: column-reverse; gap: 32px; padding-block: 34px; align-items: stretch; }
  .trace-hero h1 { font-size: clamp(33px, 8.6vw, 46px); }
  .trace-slogan { font-size: 17px; }
  .journey-art { aspect-ratio: 1.4; }
  .app-identity { margin-bottom: 20px; }
  .app-identity img { width: 52px; height: 52px; }
  .art-kicker { font-size: 8px; top: 16px; left: 18px; }
  .art-caption { padding: 11px 13px; bottom: 12px; left: 12px; right: 12px; }
  .art-caption strong { font-size: 12px; }
  .art-caption span { font-size: 11px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading p { margin-top: 10px; }
  .timeline { padding-left: 34px; }
  .timeline-card { padding: 20px; }
  .timeline-card > .icon { left: -32px; width: 20px; height: 20px; top: 25px; }
  .timeline-card::before { left: -22px; top: 55px; }
  .timeline-card h3 { font-size: 17px; }
  .timeline-card p { font-size: 14px; }
  .tools-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card { padding: 23px; }
  .privacy-strip { flex-wrap: wrap; align-items: flex-start; padding: 20px; gap: 12px; }
  .privacy-strip p { flex-basis: calc(100% - 40px); }
  .privacy-strip a { margin-left: 35px; }
  .site-footer { margin-top: 12px; padding-block: 20px 28px; }
  .footer-links { margin-left: 0; flex-basis: 100%; gap: 10px 20px; }
  .legal-header { flex-wrap: wrap; }
  .legal-header .brand { font-size: 16px; }
  .legal-header .header-actions { gap: 12px; }
  .legal-header .header-actions > .text-link { display: none; }
  .legal-main { padding-block: 32px 22px; }
  .legal-heading { padding-bottom: 24px; }
  .legal-heading h1 { font-size: 32px; }
  .legal-layout { display: block; padding-top: 20px; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--separator); padding-bottom: 18px; margin-bottom: 28px; }
  .legal-content h2 { font-size: 21px; }
  .legal-content p { font-size: 14px; }
}
@media (max-width: 380px) {
  .contact-link { font-size: 11px; }
  .header-actions { gap: 8px; }
  .site-header > .header-actions { flex: 1; justify-content: flex-end; }
  .site-header > .brand { font-size: 17px; gap: 7px; }
  .language-picker select { max-width: 102px; padding-inline: 6px; }
  .product-card { padding: 24px; min-height: 440px; }
  .card-slogan { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 760px) {
  .product-card { min-height: 0; }
  .hero-download { flex-wrap: wrap; }
  .hero-download-copy { flex: 1 1 190px; }
}
@media (min-width: 761px) and (max-width: 950px) {
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .card-app-heading { gap: 12px; }
  .card-app-heading .app-icon { width: 52px; height: 52px; }
  .card-app-heading h2 { font-size: 23px; }
  .card-download { gap: 12px; }
  .card-download-copy > p { font-size: 14px; }
  .download-store { font-size: 12px; }
}
