/* tmembes — studio site. Two product worlds: T Members (mint) and Bridge Record (ember). */
:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dd;
  --ink: #15130f;
  --ink-2: #4b463e;
  --ink-3: #8a8378;
  --line: rgba(21, 19, 15, 0.12);
  --card: #fffdf9;

  --mint: #57f49f;
  --mint-soft: #d4fbe6;
  --emerald: #059669;
  --emerald-deep: #064e3b;
  --gold: #d4af37;

  --ember: #ff5a36;
  --ember-2: #ff8a3d;
  --night: #140d0a;
  --night-2: #21140f;

  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1200px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12100d;
    --paper-2: #1c1915;
    --ink: #f3efe7;
    --ink-2: #c7c0b4;
    --ink-3: #8d867b;
    --line: rgba(243, 239, 231, 0.13);
    --card: #1a1713;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* bilingual: <html data-lang> hides the other language */
html[data-lang="en"] [lang="zh"], html[data-lang="zh"] [lang="en"] { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; }
.top-inner {
  margin: 12px auto 0; max-width: calc(var(--max) - 2 * var(--gutter) + 0px);
  width: calc(100% - 2 * var(--gutter));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.wordmark { font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; }
.wordmark i { color: var(--emerald); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.lang-btn {
  font: 700 13px/1 var(--sans); color: var(--paper); background: var(--ink);
  border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer;
}
@media (max-width: 640px) { .nav .hide-s { display: none; } }

/* ---------- type ---------- */
.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 10.5vw, 148px); line-height: 0.92; letter-spacing: -0.035em; margin: 0; }
.display em { font-style: italic; }
.display .zh { font-family: var(--sans); font-weight: 750; letter-spacing: -0.05em; font-size: 0.78em; line-height: 1.08; }
h2.title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 76px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 18px; }
h2.title .zh, h1 .zh-sans { font-family: var(--sans); font-weight: 750; letter-spacing: -0.04em; font-size: 0.8em; line-height: 1.15; }
.lede { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 600px; margin: 0; font-weight: 500; }

/* ---------- home hero ---------- */
.hero { padding-block: 72px 40px; position: relative; }
@media (min-width: 900px) { .hero { padding-block: 120px 64px; } }
.hero .lede { margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 650 13px/1 var(--sans); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- two worlds ---------- */
.worlds { display: grid; gap: 16px; grid-template-columns: 1fr; padding-bottom: 24px; }
@media (min-width: 960px) { .worlds { grid-template-columns: 1fr 1fr; gap: 20px; } }
.world {
  position: relative; overflow: hidden; border-radius: 36px; text-decoration: none;
  min-height: 640px; padding: 30px 28px 0; display: flex; flex-direction: column;
  isolation: isolate; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 960px) { .world { min-height: 760px; padding: 40px 40px 0; } }
.world:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .world, .world:hover { transform: none; transition: none; } }
.world .num { font: 700 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; }
.world h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: .95; letter-spacing: -0.03em; margin: 14px 0 12px; }
.world p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 420px; }
.world .go { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--sans); }
.world .go span.arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: transform .3s; }
.world:hover .go span.arrow { transform: translateX(4px); }
.world .stage { margin-top: auto; padding-top: 36px; display: flex; justify-content: center; position: relative; }

.world.tm { background: radial-gradient(120% 70% at 80% 0%, #b9f8d6 0%, transparent 60%), linear-gradient(160deg, #e9fdf2 0%, #c9f7de 55%, #8ef0bb 100%); color: var(--emerald-deep); }
.world.tm .go span.arrow { background: var(--emerald-deep); color: var(--mint); }
.world.br { background: radial-gradient(90% 60% at 20% 100%, rgba(255,90,54,.45) 0%, transparent 65%), radial-gradient(70% 50% at 90% 10%, rgba(255,138,61,.18) 0%, transparent 70%), var(--night); color: #f7ece6; }
.world.br p { color: #d9c7be; }
.world.br .go span.arrow { background: var(--ember); color: #fff; }

/* blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(50px); z-index: -1; opacity: .8; }

/* ---------- phone frame ---------- */
.phone {
  width: min(300px, 76vw); aspect-ratio: 9 / 19.2; border-radius: 46px 46px 0 0; padding: 11px 11px 0;
  background: #0d0d0d; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(255,255,255,.08);
  position: relative; overflow: hidden; height: 470px; aspect-ratio: auto;
}
@media (min-width: 960px) { .phone { width: 320px; height: 540px; } }
.phone .screen { border-radius: 36px 36px 0 0; overflow: hidden; height: 100%; position: relative; background: #111; }
.phone .screen img { width: 100%; height: auto; }
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #000; z-index: 3; }

/* T Members mock UI (drawn in HTML from the app's real home screen layout) */
.tm-ui { background: #f5f7fa; color: #0f172a; height: 100%; padding: 54px 16px 0; font-family: var(--sans); }
.tm-ui .hi { font-size: 13px; color: #64748b; font-weight: 600; }
.tm-ui .h { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.tm-ui .avatar { width: 34px; height: 34px; border-radius: 50%; background: #d1fae5; color: #059669; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.tm-ui .stat { background: linear-gradient(150deg, #059669, #047857); color: #ecfdf5; border-radius: 22px; padding: 16px; }
.tm-ui .stat .big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.tm-ui .stat .lbl { font-size: 11.5px; opacity: .85; margin-top: 4px; font-weight: 600; }
.tm-ui .stat .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.tm-ui .stat .row b { display: block; font-size: 14px; font-weight: 800; }
.tm-ui .stat .row small { font-size: 10px; opacity: .8; font-weight: 600; }
.tm-ui .stat .row .warn b { color: #fde68a; }
.tm-ui .qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.tm-ui .qa div { background: #fff; border-radius: 16px; padding: 12px 6px; text-align: center; font-size: 11px; font-weight: 700; color: #0f172a; box-shadow: 0 1px 0 rgba(15,23,42,.05); }
.tm-ui .qa i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 10px; background: #d1fae5; color: #059669; font-style: normal; font-size: 15px; font-weight: 800; }
.tm-ui .sec { font-size: 13px; font-weight: 800; margin: 0 0 8px; display: flex; justify-content: space-between; }
.tm-ui .sec span { color: #94a3b8; font-weight: 600; font-size: 11px; }
.tm-ui .tx { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 6px; }
.tm-ui .tx .a { width: 30px; height: 30px; border-radius: 50%; background: #e2e8f0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #475569; flex: none; }
.tm-ui .tx .n { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; }
.tm-ui .tx .n small { display: block; color: #94a3b8; font-weight: 600; font-size: 10px; }
.tm-ui .tx .v { font-size: 12.5px; font-weight: 800; }
.tm-ui .tx .v.in { color: #059669; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin: 56px 0 0; }
.marquee .track { display: flex; gap: 44px; width: max-content; animation: slide 42s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; color: var(--ink-2); }
.marquee span::after { content: "✦"; font-size: .5em; color: var(--ember); }
.marquee span.m::after { color: var(--emerald); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- principles ---------- */
.principles { padding-block: 88px; display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .principles { grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 28px; padding-block: 120px; } }
.principle .n { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--ink-3); }
.principle h4 { font-size: 19px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.principle p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- product pages ---------- */
.p-hero { padding: 56px 0 0; display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .p-hero { grid-template-columns: 1.1fr .9fr; padding-top: 96px; } }
.p-hero .appline { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.p-hero .appline img { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.p-hero .appline b { font-size: 18px; display: block; line-height: 1.2; }
.p-hero .appline small { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.p-hero h1 { margin: 0; }
.p-hero .lede { margin-top: 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/1 var(--sans); padding: 15px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: transparent; }
.btn.soon { cursor: default; }
.btn .apple { font-size: 18px; line-height: 0; }
.p-stage { position: relative; display: flex; justify-content: center; min-height: 480px; align-items: flex-end; }
.p-stage .halo { position: absolute; inset: 10% 0 0; border-radius: 50%; filter: blur(70px); z-index: -1; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .fact { border-bottom: 0; padding-right: 20px; } }
.fact b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; display: block; letter-spacing: -0.02em; }
.fact span { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }

.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-head { display: grid; gap: 18px; margin-bottom: 44px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; align-items: end; } }

.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px; position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; }
.tile h4 { font-size: 21px; letter-spacing: -0.015em; margin: auto 0 8px; line-height: 1.25; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.tile .k { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 760px) {
  .tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: span 6; }
}
.tile.accent { color: #fff; border: 0; }
.tile.accent p, .tile.accent .k { color: rgba(255,255,255,.82); }
.tile .glyph { font-family: var(--serif); font-size: 84px; line-height: .8; letter-spacing: -0.04em; margin-top: 10px; }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 44px; line-height: 1; display: block; margin-bottom: 12px; }
.step h4 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.plans { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan .name { font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.plan .price { font-family: var(--serif); font-size: 58px; line-height: 1; letter-spacing: -0.03em; }
.plan .price small { font-family: var(--sans); font-size: 15px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; font-weight: 800; }
.plan.hot { background: var(--ink); color: var(--paper); border-color: transparent; }
.plan.hot .name, .plan.hot .price small, .plan.hot li { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.fine { color: var(--ink-3); font-size: 14px; margin-top: 18px; }

.band { border-radius: 36px; padding: 48px 28px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .band { padding: 72px 64px; } }
.band p { max-width: 620px; }

/* product themes */
body.tm-page { --accent: var(--emerald); }
body.tm-page .halo { background: radial-gradient(closest-side, #57f49f, transparent); }
body.tm-page .tile.accent { background: linear-gradient(150deg, #059669, #064e3b); }
body.tm-page .band { background: linear-gradient(140deg, #d4fbe6, #8ef0bb); color: #053b2c; }
body.tm-page .band p { color: #0b5440; }
body.br-page { --accent: var(--ember); }
body.br-page .halo { background: radial-gradient(closest-side, rgba(255,90,54,.8), transparent); }
body.br-page .tile.accent { background: radial-gradient(120% 90% at 0% 100%, #ff5a36, #8a1f0e 60%, #2a0f08); }
body.br-page .band { background: radial-gradient(80% 90% at 0% 100%, rgba(255,90,54,.5), transparent 60%), var(--night); color: #f7ece6; }
body.br-page .band p { color: #d9c7be; }

/* bridge record animated bars (echoes the icon) */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; margin-top: 18px; }
.bars i { width: 12px; border-radius: 99px; background: linear-gradient(#ff8a3d, #ff3d24); animation: bar 1.6s ease-in-out infinite; transform-origin: bottom; }
.bars i:nth-child(1) { height: 100%; animation-delay: -.2s; } .bars i:nth-child(2) { height: 45%; animation-delay: -.5s; }
.bars i:nth-child(3) { height: 65%; animation-delay: -.9s; } .bars i:nth-child(4) { height: 88%; animation-delay: -.3s; }
.bars i:nth-child(5) { height: 55%; animation-delay: -1.1s; } .bars i:nth-child(6) { height: 92%; animation-delay: -.7s; }
.bars i:nth-child(7) { height: 50%; animation-delay: -1.3s; }
@keyframes bar { 50% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } }

/* docs (support) */
.doc { max-width: 760px; padding: 64px 0 96px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 18px; }
.doc .meta { color: var(--ink-2); }
.doc a { color: var(--accent, var(--emerald)); }
.doc h2 { font-size: 22px; margin: 44px 0 14px; }
.doc details { border-top: 1px solid var(--line); padding: 18px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font-weight: 500; font-size: 22px; line-height: 1; }
.doc details[open] summary::after { content: "–"; }
.doc details p { color: var(--ink-2); margin: 12px 0 0; }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; }
.foot .big { font-family: var(--serif); font-size: clamp(76px, 20vw, 260px); line-height: .8; letter-spacing: -0.05em; margin: 0 0 40px; color: var(--ink); }
.foot .big i { color: var(--emerald); }
.foot .cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); font-size: 15px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot h5 { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot .legal { color: var(--ink-3); font-size: 13.5px; margin-top: 44px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* product hero headline sits in a narrower column than the home hero */
.p-hero .display { font-size: clamp(46px, 7.4vw, 108px); }
.p-hero .display .zh { font-size: 0.74em; }
.zh-keep { white-space: nowrap; }
