:root {
  --bg: #0b0c10;
  --bg-2: #101218;
  --bg-3: #151821;
  --line: #232736;
  --text: #e7e9f1;
  --dim: #a3a9bd;
  --accent: #7c5cff;
  --accent-2: #a78bfa;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; height: auto; display: block; }
.shot video { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); background: #000; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 12, 16, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { width: min(1280px, 100% - 32px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { padding: 8px 10px; white-space: nowrap; border-radius: 8px; color: var(--dim); font-size: .95rem; }
.top nav a:hover { color: var(--text); text-decoration: none; background: var(--bg-3); }
.top nav .btn { margin-left: 6px; color: var(--text); }

/* the name: "-sauce" in the app's flowing colours */
.saucy {
  background: linear-gradient(90deg, #ff8a2b, #ff2d6f 25%, #b44dff 50%, #ff2d6f 75%, #ff8a2b) 0 0 / 200% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: saturate(1.35) drop-shadow(0 0 .4rem rgba(255, 61, 140, .5));
  animation: sauceFlow 5s linear infinite;
}
@keyframes sauceFlow { from { background-position: 0 0; } to { background-position: 200% 0; } }
.wordmark { margin: 0 0 6px; font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -.01em; }
.foot-brand { margin: 0 0 14px; font-weight: 800; font-size: 1.3rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--text); font-weight: 600; font-size: .98rem; cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: #3a3f58; background: #1b1f2b; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #5b3df0); border-color: transparent; color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #8d70ff, #6a4df5); border-color: transparent; }
.btn-ghost { padding: 7px 14px; }
.btn-gold { background: linear-gradient(135deg, #ffd23f, #f5b800); border-color: transparent; color: #2b2100; }
.btn-gold:hover { background: linear-gradient(135deg, #ffdd62, #ffc61a); border-color: transparent; }
.support { text-align: center; border-top: 1px solid var(--line); }
.support .cta { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* hero */
.hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(124, 92, 255, .22), transparent 70%); }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-2); font-size: .85rem; background: var(--bg-2); }
h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.1; letter-spacing: -.02em; }
.lead { max-width: 720px; margin: 0 auto 28px; color: var(--dim); font-size: 1.15rem; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.small { color: var(--dim); font-size: .88rem; }
.note { margin-top: 12px; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hero-shot { margin-top: 44px; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; text-align: center; }
.sub { margin: 0 auto 40px; max-width: 640px; text-align: center; color: var(--dim); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.alt .card { background: var(--bg-3); }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0 0 14px; color: var(--dim); font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }
.grid.two .card .btn { margin-top: 4px; }
#start .small { margin-top: 22px; text-align: center; max-width: 720px; margin-inline: auto; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shots figcaption { margin-top: 10px; color: var(--dim); font-size: .9rem; text-align: center; }

/* big screen */
#bigscreen .shot, #carousel .shot, #shelf .shot { max-width: 980px; margin-inline: auto; }
#carousel .shot + .shot { margin-top: 34px; }
#bigscreen figcaption, #carousel figcaption, #shelf figcaption { margin-top: 10px; color: var(--dim); font-size: .9rem; text-align: center; }
.ticks { list-style: none; margin: 34px auto; padding: 0; max-width: 720px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--dim); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* video */
.clips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.clips video { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); background: #000; }
.clips figcaption { margin-top: 10px; color: var(--dim); font-size: .9rem; text-align: center; }

/* faq */
details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-3); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 18px 16px; color: var(--dim); }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 18px; }
.foot .links a { color: var(--dim); }
.foot .small { max-width: 780px; margin: 0; }

@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top nav > a:not(.btn) { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 52px 0; }
  .grid, .grid.two, .shots, .clips { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .saucy { animation: none; } }

/* The section links hide when they no longer fit; other languages' words are longer, so they need more room. */
@media (max-width: 1160px) { .top nav > a:not(.btn) { display: none; } }
@media (max-width: 1240px) { html:lang(de) .top nav > a:not(.btn), html:lang(es) .top nav > a:not(.btn), html:lang(pt) .top nav > a:not(.btn), html:lang(it) .top nav > a:not(.btn) { display: none; } }
@media (max-width: 1300px) { html:lang(fr) .top nav > a:not(.btn), html:lang(ja) .top nav > a:not(.btn) { display: none; } }
.langmenu { position: relative; margin-left: 8px; }
.langmenu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; border: 1px solid var(--line); background: var(--bg-2); }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.langmenu summary:hover { background: var(--bg-3); }
.langmenu ul { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); z-index: 30; }
.top nav .langmenu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: .95rem; }
.top nav .langmenu a:hover { background: var(--bg-3); }
.top nav .langmenu a[aria-current] { background: var(--bg-3); font-weight: 600; }
.langmenu img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); object-fit: cover; flex: none; }
@media (max-width: 420px) { .top nav .btn { display: none; } }
.langmenu summary { white-space: nowrap; }
/* Japanese and Chinese have no spaces between words: break lines at sensible places instead of leaving one character on a line. */
html:lang(ja) body, html:lang(zh-Hans) body { line-break: strict; word-break: auto-phrase; }

/* WeChat Pay: a quiet second way to say thanks, opened from a small line under the coffee button */
.pay { margin: 18px auto 0; max-width: 340px; }
.pay summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--dim); font-size: .92rem; }
.pay summary::-webkit-details-marker { display: none; }
.pay summary::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #07c160; }
.pay summary:hover, .pay[open] summary { color: var(--text); background: var(--bg-3); }
.pay figure { margin: 14px 0 0; }
.pay img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pay figcaption { margin-top: 10px; font-size: .9rem; color: var(--dim); }
