/* 招小协 · redesign r1 (design/bold-app). A layer over styles.css: tokens, type scale and layout only.
   app.js and every hook it reads stay as they were. Colour: one red family, 品牌红 #E14B3F (brand
   colors.json); its 600 step #B83E34 carries text and white-on-red buttons (5.56:1), its 400 step
   #E87369 does the same on near-black. */
:root{
  --ink:#141413;--muted:#5c5c5c;--line:#e6e6e6;--surface:#f4f4f4;
  --red:#b83e34;--red-text:#b83e34;--red-hover:#923129;--red-press:#923129;--on-red:#fff;--red-soft:#fcedec;--red-fill:#e14b3f;
  --ease:cubic-bezier(.23,1,.32,1);--ease-io:cubic-bezier(.77,0,.175,1);
  --wide:min(100% - 2*var(--gutter),88rem);
  --shadow:0 1px 1px rgb(0 0 0 / .04),0 24px 60px -28px rgb(0 0 0 / .22);
}
:root[data-theme=dark]{
  --ink:#ededed;--muted:#a3a3a3;--line:#262626;--surface:#151515;
  --red:#e87369;--red-text:#e87369;--red-hover:#ee9c95;--red-press:#ee9c95;--on-red:#0a0a0a;--on-accent:#0a0a0a;--red-soft:rgb(225 75 63 / .14);
  --shadow:0 1px 1px rgb(0 0 0 / .4),0 30px 70px -30px rgb(0 0 0 / .8);
}
.wrap{width:var(--wide)}
main{counter-reset:sec}

/* ---------- Type ---------- */
h1.display{font-size:clamp(3rem,12.2vw,11.25rem);line-height:.98;letter-spacing:-.04em}
:root[data-lang=en] h1.display{font-size:clamp(3.25rem,11vw,10rem);letter-spacing:-.03em;line-height:.92}
h2.display{font-size:clamp(2.5rem,6.2vw,5.75rem);line-height:1.02;letter-spacing:-.035em}
:root[data-lang=en] h2.display{font-size:clamp(2.75rem,6.8vw,6.25rem);line-height:.96}
h3.display{font-size:clamp(1.5rem,2vw,1.875rem);letter-spacing:-.02em}
.lede{font-size:clamp(1.0625rem,1.35vw,1.25rem);line-height:1.7;color:var(--muted)}
.eyebrow{display:flex;align-items:baseline;gap:.875rem;margin:0 0 clamp(1.25rem,2.4vw,2rem);padding:0;border-radius:0;background:none;color:var(--muted);font-size:.875rem;font-weight:500;letter-spacing:.04em;counter-increment:sec}
.eyebrow::before{content:counter(sec,decimal-leading-zero);font:400 1.375rem/1 'Instrument Serif',serif;letter-spacing:0;color:var(--red-text)}
.eyebrow::after{content:'';flex:1;align-self:center;height:1px;background:var(--line)}

/* ---------- Buttons: pills, a 0.97 press, no lift ---------- */
.btn{border-radius:999px;transition:transform 160ms var(--ease),background-color 200ms var(--ease),box-shadow 200ms var(--ease)}
.btn:hover,.btn-lg:hover,.btn[data-poster-open]:hover,.row[data-detected=true] .btn:hover{transform:none;box-shadow:none}
.btn:active{transform:scale(.97)}
.btn-lg{min-height:56px;padding:0 1.75rem;border-radius:999px;font-size:1.0625rem}
.btn-sm{border-radius:999px}
.chip{border-radius:999px}
.link{font-size:1rem;color:var(--ink);text-decoration-color:color-mix(in srgb,var(--ink) 30%,transparent);text-decoration-thickness:1px}
@media(hover:hover){.link:hover{text-decoration-color:currentColor}}

/* ---------- Header ---------- */
.top{background:var(--paper)}
.seg{border-radius:999px}.seg button{border-radius:999px}
.icon-btn{border-radius:999px}

/* ---------- Hero: the line, then the window ---------- */
.hero{padding:clamp(2.5rem,7vw,6.5rem) 0 0;text-align:left}
.hero .hero-in{width:var(--wide)}
.hero h1{margin:0}
.hero h1 .ln{padding-bottom:.06em}
.hero-row{display:grid;grid-template-columns:minmax(0,34rem) minmax(0,auto);justify-content:space-between;align-items:end;gap:2rem 4rem;margin-top:clamp(1.75rem,3.4vw,3rem)}
.hero .lede{margin:0;max-width:34rem}
html:lang(zh) .hero .lede{text-align-last:auto}
.hero-side{display:grid;justify-items:end;gap:1.5rem}
.hero .cta{margin:0;justify-content:flex-end;gap:1.5rem}
.hero-guide{margin:0;justify-content:flex-end}
.hero-guide .bubble{width:min(21rem,100%)}
.ready .hero-guide{animation:rise 800ms var(--ease) 680ms both}
.hero-stage{width:var(--wide);margin:clamp(3rem,6vw,5.5rem) auto 0}
.hero-shot{margin:0;border-radius:22px}

/* ---------- Frames ---------- */
.frame{border-radius:20px;box-shadow:var(--shadow)}
.chrome{height:2.375rem;background:var(--paper)}

/* ---------- 招小协's notes: the face as a quiet chip, the words without a card ---------- */
.face{height:40px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font-size:1rem}
@media(hover:hover){.face:hover{transform:none;border-color:color-mix(in srgb,var(--ink) 35%,transparent)}}
.face:active{transform:scale(.97)}
.face.sm{border-radius:999px}
.bubble{padding:.125rem 0 0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--muted)}
.bubble b{color:var(--ink);letter-spacing:.02em}
.guide{gap:.875rem}

/* ---------- Sections ---------- */
.block{padding-top:clamp(6rem,13vw,11rem)}
.head{margin-bottom:clamp(2rem,4vw,3.5rem)}
.head .lede{max-width:40rem}

.split h2.display{font-size:clamp(2.5rem,5vw,4.75rem)}
:root[data-lang=en] .split h2.display{font-size:clamp(2.75rem,5.4vw,5.25rem)}

/* Story: big numerals, like the chapters in the brand guide */
.step-no{margin:0 0 .25rem;font:400 clamp(3.5rem,6vw,5.5rem)/1 'Instrument Serif',serif;font-style:normal;letter-spacing:-.02em;color:var(--ink)}
.step.on .step-no{color:var(--red-text)}
.step h3.display{font-size:clamp(1.75rem,2.4vw,2.25rem)}
.progress i{border-radius:999px}

/* Three facts: rules, not boxes */
.three{gap:clamp(1.5rem,3vw,3rem)}
.three .card{padding:1.5rem 0 0;border:0;border-top:1px solid var(--ink);border-radius:0;background:none;box-shadow:none}
.three .card::before{display:none}
.three .card:hover{translate:none;box-shadow:none}
.three .card .mini{display:none}
.three .card h3.display{font-size:clamp(1.75rem,2.6vw,2.5rem)}

/* Bento */
.bento{gap:clamp(.75rem,1.4vw,1.25rem)}
.tile{border:0;border-radius:26px;padding:1.125rem 1.125rem 1.75rem;background:var(--surface)}
.tile>h3{margin:1.5rem .5rem 0}

.plain li::before{width:6px;height:6px;top:.7em;background:var(--red-fill)}
.split{gap:clamp(2.5rem,6vw,6rem)}

/* ---------- Downloads: a near-black band ---------- */
.band{margin-top:clamp(6rem,13vw,11rem);padding:clamp(5rem,10vw,9rem) 0 clamp(4.5rem,8vw,7rem);
  --paper:#0b0b0b;--ink:#ededed;--muted:#a3a3a3;--line:#2a2a2a;--surface:#161616;--focus:#ededed;
  --red:#e87369;--red-text:#e87369;--red-hover:#ee9c95;--red-press:#ee9c95;--on-red:#0a0a0a;--on-accent:#0a0a0a;--red-soft:rgb(225 75 63 / .12);
  background:var(--paper);color:var(--ink);color-scheme:dark}
:root[data-theme=dark] .band{--paper:#141414;--line:#2e2e2e;--surface:#1c1c1c}
.band h2.display{font-size:clamp(3rem,9.4vw,9rem);line-height:.98;letter-spacing:-.045em}
.band .guide .face{background:transparent}
.dl{gap:0;border-top:1px solid var(--line)}
.row{grid-template-columns:minmax(0,1fr) auto auto;padding:1.25rem .25rem;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;transition:background-color 200ms var(--ease)}
.row:hover{transform:none;border-color:var(--line)}
.row b{font-size:1.125rem}
.row .btn{min-height:40px;padding:0 1.25rem;background:var(--ink);color:var(--paper)}
.row[data-detected=true]{margin:0 0 .75rem;padding:clamp(1.5rem,3vw,2.25rem);border:1px solid var(--red-text);border-radius:24px;background:rgb(232 115 105 / .07)}
.row[data-detected=true] b{font-size:clamp(1.5rem,2.4vw,2rem);font-family:var(--serif);font-weight:600;letter-spacing:-.02em}
.row[data-detected=true] .btn{min-height:52px;padding:0 1.75rem;font-size:1rem}
.first,.empty{border-radius:20px}
.soon li{border-radius:20px}
.band .foot-note a{color:var(--ink)}

/* ---------- Footer: the name, large ---------- */
.foot{margin-top:0;padding:clamp(3rem,6vw,5rem) 0 2rem;border-top:0}
.foot-word{margin:0 auto clamp(1.5rem,3vw,2.5rem);font:400 clamp(6rem,31vw,28rem)/.8 'Instrument Serif',serif;letter-spacing:-.04em;color:var(--ink);white-space:nowrap;overflow:hidden}
.foot .wrap:last-child{padding-top:1.5rem;border-top:1px solid var(--line)}

/* ---------- Narrower ---------- */
@media(max-width:900px){
  .hero-row{grid-template-columns:minmax(0,1fr);align-items:start}
  .hero-side{justify-items:start}
  .hero .cta,.hero-guide{justify-content:flex-start}
}
@media(max-width:560px){
  .hero{padding-top:2rem}
  .hero .cta{display:grid;width:100%;gap:1rem;justify-content:stretch;justify-items:stretch;text-align:center}
  .hero-side{justify-items:stretch}
  .hero-guide,.guide{flex-direction:row;align-items:flex-start;gap:.75rem}
  .guide .face{height:36px;padding:0 .625rem;font-size:.875rem}
  .hero .btn-lg{width:100%}
  .hero-stage{margin-top:2.5rem}
  .hero-shot{border-radius:14px}
  .frame{border-radius:14px}
  .row[data-detected=true]{padding:1.25rem}
  .tile{border-radius:22px}
}

@media(max-width:767px){
  .top .btn-sm{display:none}
  .foot{padding-bottom:1rem}
}

@media(prefers-reduced-motion:reduce){
  .btn:active,.face:active{transform:none}
}

/* ---------- Accessibility and the Hub demos ---------- */
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* The demos draw Hub's components; on this page they take the same red family as the rest. */
.hub{--h-red:#b83e34;--h-red-text:#b83e34}
:root[data-theme=dark] .hub{--h-red:#e87369;--h-red-text:#e87369;--h-on:#0a0a0a}
.ht-dots{margin:2px -8px -4px}
.ht-dot{width:24px}
.ht-dot::before{left:8px}

/* ==========================================================================
   r3 · 成员卡即目录. The hero is a member card whose numbered spots open the feature each number
   comes from; 「足迹」 opens a day you can drag through. The headline stays a comfortable size.
   ========================================================================== */
.hero{padding:clamp(2rem,5vw,4.5rem) 0 clamp(1rem,3vw,2.5rem)}
.hero-grid{display:grid;grid-template-columns:minmax(0,4.2fr) minmax(0,7.8fr);gap:clamp(2rem,4vw,4.5rem);align-items:start}
.hero .hero-in{width:auto;margin:0;padding-top:clamp(.5rem,2vw,2rem)}
.hero h1.display{font-size:clamp(2.5rem,4.2vw,4rem);line-height:1.08;letter-spacing:-.03em}
:root[data-lang=en] .hero h1.display{font-size:clamp(2.5rem,4vw,3.75rem);line-height:1.02}
.hero-row{grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:start;gap:1.75rem;margin-top:1.5rem}
.hero .lede{font-size:1.0625rem}
.hero-side{justify-items:start}
.hero .cta{justify-content:flex-start}
.hero-guide{justify-content:flex-start}
.hero-stage.ci{width:auto;margin:0;display:grid;grid-template-columns:minmax(0,23rem) minmax(0,1fr);gap:clamp(1.25rem,2.4vw,2.5rem);align-items:start}

/* The card: an HTML rebuild of card-front, so its fields can be buttons. Numbers sit inline
   before each label, so a marker can never cover the words it points at. */
.ci-card{position:relative;padding:1.5rem 1.5rem 1.25rem;border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:var(--shadow);font-size:.875rem;line-height:1.5}
.ci-sample{position:absolute;top:1rem;right:1rem;margin:0;padding:.125rem .5rem;border:1px solid var(--line);border-radius:999px;font-size:.75rem;line-height:1.5;color:var(--muted)}
.ci-head{display:flex;justify-content:space-between;align-items:baseline;padding-right:3.5rem}
.ci-head b{font-family:var(--serif);font-size:1.125rem;font-weight:600}
.ci-head small{display:block;font:500 .625rem/1.4 var(--sans);letter-spacing:.3em;color:var(--muted)}
.ci-head span{display:none}
.ci-id{display:flex;justify-content:space-between;margin-top:1rem;font-size:.8125rem;color:var(--muted);letter-spacing:.08em}
.ci-name{margin:.5rem 0 0;font-family:var(--serif);font-size:2rem;font-weight:600;line-height:1.15;letter-spacing:.04em}
.ci-sub{margin:.25rem 0 0;color:var(--muted);font-size:.8125rem}
.ci-hot{display:grid;align-content:start;gap:.125rem;width:100%;margin:0;padding:.5rem .625rem;border:1px solid transparent;border-radius:12px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background-color 200ms ease,border-color 200ms ease,transform 160ms var(--ease)}
.ci-n{transition:background-color 200ms ease,color 200ms ease}
.ci-hot:active{transform:scale(.98)}
@media(hover:hover){.ci-hot:hover{background:var(--surface)}}
.ci-hot[aria-pressed=true]{border-color:var(--red-text);background:var(--red-soft)}
.ci-hot:focus-visible,.ci-map button:focus-visible,.day-rail:focus-visible,.day-stops button:focus-visible{outline:2px solid var(--focus,var(--ink));outline-offset:2px}
.ci-n{display:inline-grid;place-items:center;flex:none;width:1.25rem;height:1.25rem;margin-right:.375rem;border:1px solid var(--red-text);border-radius:50%;font:600 .6875rem/1 var(--sans);color:var(--red-text);vertical-align:.1em}
.ci-hot[aria-pressed=true] .ci-n{background:var(--red-text);color:var(--paper)}
.ci-days{margin:.75rem -.625rem 0;width:calc(100% + 1.25rem)}
.ci-big{display:flex;align-items:baseline;gap:.25rem;font-family:var(--serif);font-size:1.125rem}
.ci-big::before{content:none}
.ci-days .ci-big{order:0}
.ci-big b{font-family:'Instrument Serif',var(--serif);font-weight:400;font-size:3.25rem;line-height:1;color:var(--red-text);letter-spacing:-.02em}
.ci-days .ci-n{align-self:center}
.ci-days{grid-template-columns:auto 1fr}
.ci-days .ci-n{grid-row:1}
.ci-days .ci-small{grid-column:1/-1;color:var(--muted);font-size:.8125rem}
.ci-stats{display:grid;grid-template-columns:repeat(3,max-content);justify-content:space-between;gap:.25rem;margin:.75rem -.625rem 0;padding-top:.75rem;border-top:1px solid var(--line)}
.ci-cell{display:grid;align-content:start;gap:.125rem;padding:.5rem .625rem}
.ci-l{display:flex;align-items:center;white-space:nowrap;color:var(--muted);font-size:.8125rem;font-weight:600;letter-spacing:.04em}
.ci-v{margin-top:.25rem;font-size:.8125rem}
.ci-v b{font-family:'Instrument Serif',var(--serif);font-weight:400;font-size:1.875rem;line-height:1.1}
.ci-roles{margin:.25rem -.625rem 0;width:calc(100% + 1.25rem)}
.ci-r{display:grid;grid-template-columns:7rem 1fr;font-size:.9375rem}
.ci-r span{font-family:'Instrument Serif',var(--serif);color:var(--muted);font-size:1.0625rem}
.ci-r b{font-weight:600}
.ci-foot{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-top:.875rem;padding-top:.75rem;border-top:1px solid var(--line);font-size:.8125rem;font-weight:600}
.ci-foot span[lang]{font-size:.625rem;letter-spacing:.18em;color:var(--red-text);text-align:right}
.ci-foot span[lang] b{display:block;font:400 1.25rem/1 'Instrument Serif',var(--serif);letter-spacing:0;color:var(--muted)}

/* The panel: every pane sits in the same grid cell and cross-fades, so switching never reflows. */
.ci-panel{position:sticky;top:5.5rem;display:grid;min-width:0;padding:1.5rem;border:1px solid var(--line);border-radius:22px;background:var(--paper)}
.ci-pane{grid-area:1/1;min-width:0;opacity:0;transform:translate3d(0,6px,0);visibility:hidden;transition:opacity 180ms var(--ease),transform 240ms var(--ease),visibility 0s linear 240ms}
.ci-pane[data-on]{opacity:1;transform:none;visibility:visible;transition:opacity 240ms var(--ease) 40ms,transform 280ms var(--ease) 40ms,visibility 0s}
.ci-map{display:grid;margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.ci-map li{border-bottom:1px solid var(--line)}
.ci-map button{display:flex;align-items:center;width:100%;min-height:2.875rem;padding:0 .25rem;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background-color 200ms ease,transform 160ms var(--ease)}
.ci-map button:active{transform:scale(.98)}
@media(hover:hover){.ci-map button:hover{background:var(--surface)}}
.ci-h{margin:0;font-family:var(--serif);font-size:1.5rem;font-weight:600;line-height:1.25}
.ci-p{margin:.375rem 0 0;color:var(--muted);font-size:.9375rem;line-height:1.6}

/* The day: a hairline; the knob is moved with transform only, and only eases when it settles. */
.day{margin-top:1.5rem}
.day-rail{position:relative;display:block;height:2.75rem;cursor:grab;touch-action:none;border-radius:8px}
.day[data-drag] .day-rail{cursor:grabbing}
.day-track{position:absolute;left:10%;right:10%;top:50%;height:0}
.day-line{position:absolute;left:0;right:0;top:-.5px;height:1px;background:var(--line)}
.day-line i{position:absolute;inset:0;background:var(--red-text);transform-origin:left;transform:scaleX(0);transition:transform 260ms var(--ease)}
.day-knob{position:absolute;left:-.4375rem;top:-.4375rem;width:.875rem;height:.875rem;border:1.5px solid var(--red-text);border-radius:50%;background:var(--paper);transition:transform 260ms var(--ease),scale 160ms var(--ease);will-change:transform}
.day[data-drag] .day-knob,.day[data-drag] .day-line i{transition:none}
.day[data-drag] .day-knob{scale:1.15}
.day-stops{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:-.375rem 0 0;padding:0;list-style:none}
.day-stops button{display:grid;justify-items:center;width:100%;min-height:2.75rem;padding:.25rem 0;border:0;background:none;color:var(--muted);font:inherit;font-size:.8125rem;line-height:1.35;text-align:center;cursor:pointer;transition:color 200ms ease}
.day-stops time{font:400 1rem/1.2 'Instrument Serif',var(--serif);font-variant-numeric:tabular-nums;transition:color 200ms ease}
.day-stops button[aria-pressed=true]{color:var(--ink)}
.day-stops button[aria-pressed=true] time{color:var(--red-text)}
@media(hover:hover){.day-stops button:hover{color:var(--ink)}}

@media(max-width:1100px){
  .hero-grid{grid-template-columns:minmax(0,1fr)}
  .hero-stage.ci{grid-template-columns:minmax(0,23rem) minmax(0,1fr)}
}
@media(max-width:720px){
  .hero{padding-top:1.75rem}
  .hero h1.display{font-size:clamp(2.25rem,10vw,2.75rem)}
  :root[data-lang=en] .hero h1.display{font-size:clamp(2.125rem,9.4vw,2.625rem)}
  .hero-stage.ci{grid-template-columns:minmax(0,1fr);gap:1rem}
  .ci-card{padding:1.25rem 1.125rem 1rem;border-radius:18px}
  .ci-panel{position:static;padding:1.25rem 1.125rem;border-radius:18px}
  .ci-name{font-size:1.75rem}
  .ci-big b{font-size:2.75rem}
  .ci-l{font-size:.75rem;letter-spacing:0}
  .ci-hot,.ci-cell{padding:.5rem}
  .ci-stats,.ci-days,.ci-roles{margin-left:-.5rem;margin-right:-.5rem}
  .ci-days,.ci-roles{width:calc(100% + 1rem)}
  .ci-r{grid-template-columns:6.25rem 1fr}
  .day-stops button{font-size:.75rem}
  .day-stops time{font-size:.875rem}
}
@media(max-width:560px){
  .hero .cta{justify-content:stretch}
  .hero-side{justify-items:stretch}
}
@media(prefers-reduced-motion:reduce){
  .ci-hot,.ci-map button,.ci-pane,.ci-pane[data-on],.day-knob,.day-line i,.day-stops button,.day-stops time{transition:none}
}
/* r5: the member card is Hub v0.0.251's own (.pass-card 340 × 645, 12px corners). */
.pass3d{aspect-ratio:680/1291;border-radius:12px}
.pf{border-radius:12px}

/* r6: fewer words. The examples carry the page; each block's original wording stays one tap away under 原文. */
.tag{display:inline-block;margin:0;padding:.125rem .625rem;border:1px solid var(--line);border-radius:999px;font-size:.75rem;line-height:1.5;color:var(--muted)}
.head .tag{margin-top:-.25rem}
.chips-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.25rem 0 0;padding:0;list-style:none}
.chips-row li{padding:.375rem .75rem;border:1px solid var(--line);border-radius:999px;font-size:.8125rem;line-height:1.4;color:var(--muted)}
.chips-row li::before{display:none}
.orig{margin-top:1rem;color:var(--muted);font-size:.8125rem;line-height:1.65}
.head .orig,.copy .orig{max-width:40rem}
.three+.orig{margin-top:1.5rem}
.orig summary{display:inline-flex;align-items:center;gap:.375rem;min-height:2.75rem;cursor:pointer;list-style:none;color:var(--muted);font-size:.8125rem;-webkit-user-select:none;user-select:none}
.orig summary::-webkit-details-marker{display:none}
.orig summary::after{content:'';width:.4375rem;height:.4375rem;margin-top:-.1875rem;border-right:1.25px solid currentColor;border-bottom:1.25px solid currentColor;rotate:45deg;transition:rotate 200ms var(--ease),margin 200ms var(--ease)}
.orig[open] summary::after{rotate:225deg;margin-top:.1875rem}
.orig summary:hover{color:var(--ink)}
.orig summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}
.orig dl{display:grid;gap:.625rem;margin:.25rem 0 0;padding:.875rem 0 0;border-top:1px solid var(--line)}
.orig dl>div{display:grid;gap:.125rem}
.orig dt{color:var(--ink);font-weight:600}
.orig dd{margin:0}
.orig dd a{color:inherit}
.orig[open] dl{animation:orig-in 220ms var(--ease) both}
@keyframes orig-in{from{opacity:0;translate:0 -4px}}
@media(prefers-reduced-motion:reduce){.orig[open] dl{animation:none}.orig summary::after{transition:none}}
