/* 電扶梯走左邊 社群 — official site. Rules and their sources: website/STYLE.md */

@font-face {
  font-family: 'LSE Display';
  font-weight: 900;
  font-display: swap;
  src: url('fonts/lse-black.woff2') format('woff2');
}
@font-face {
  font-family: 'LSE Display';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lse-bold.woff2') format('woff2');
}

@property --rx { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ry { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --wob { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --black: #0b0b0b;
  /* the app's palette, settled 2026-10-16 (shared/tokens.ts `color`) */
  --ink: #29282b;
  --ink-soft: #3d3c40;
  --paper: #fff8e2;
  --surface: #ffffff;
  --cream: #f4f2ec;
  --yellow: #f8cf01;
  --yellow-site: #ffd400;
  --yellow-soft: #ffe784;
  /* the app's highlighter: flat colour behind the lower half of a word (mobile/components/Highlighter.tsx) */
  --highlight: #ffd22e;
  --muted: #706d65;
  --line: #d8d1c3;
  --red: #c84935;
  --green: #4f7147;
  /* the four mood rows, the app's own colours (tokens `moodCoral` …) */
  --mood-coral: #ff957f;
  --mood-yellow: #ffd22e;
  --mood-blue: #7dbbeb;
  --mood-green: #a8d97c;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --slant: -18.4deg; /* the step in the app icon: 82 across for 247 up */
  --cjk: 'PingFang TC', 'Noto Sans TC', 'Source Han Sans TC', 'Microsoft JhengHei', sans-serif;
  --latin: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --display: 'LSE Display', var(--cjk);
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--latin), var(--cjk);
  font-size: 1.0625rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main, .site-footer { overflow-x: clip; }
:lang(zh-Hant-TW) body, html:lang(zh-Hant-TW) body { font-family: var(--cjk); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 900; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- type */

.display, .display-2, .display-3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
  font-feature-settings: 'palt';
  /* break only where the copy breaks (
 and punctuation), never inside a phrase — unless it would overflow */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.display { font-size: clamp(2.7rem, 7.4vw, 7.6rem); }
html:lang(zh-Hant-TW) .display, html:lang(zh-Hant-TW) .display-2 { line-height: 1.2; }
.display-2 { font-size: clamp(2rem, 4.1vw, 4.1rem); }
.display-3 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
:lang(en) .display { font-size: clamp(2.5rem, 6.4vw, 6.6rem); line-height: 1.02; letter-spacing: -.035em; }
:lang(en) .display-2 { font-size: clamp(2rem, 4.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; }
:lang(en) .display, :lang(en) .display-2, :lang(en) .display-3 { font-family: var(--latin), var(--display); }

.hl {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 .14em;
  margin-left: -.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------------------------------------------------------------- controls */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1.05em 1.6em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pill:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.pill:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.pill-yellow { background: var(--yellow); color: var(--ink); }
.hero .pill-yellow { border-color: var(--yellow); box-shadow: 5px 5px 0 var(--cream); }
.hero .pill-yellow:hover { box-shadow: 7px 7px 0 var(--cream); }
.pill-ink { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--surface); }
.pill-ink:hover { box-shadow: 7px 7px 0 var(--surface); }
.pill-sm { font-size: .875rem; padding: .7em 1.15em; box-shadow: 3px 3px 0 var(--cream); border-color: var(--yellow); }
.pill-sm:hover { box-shadow: 4px 4px 0 var(--cream); }

.text-link {
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 0 2px; background-position: 100% 100%; }
.text-link span { display: inline-block; transition: transform .35s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.sticker {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1;
  padding: .55em 1em .5em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
  margin-bottom: 1.4rem;
}
.sticker-yellow { background: var(--yellow); }
.sticker-white { background: var(--surface); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  color: var(--cream);
  transition: background-color .35s var(--ease), padding .35s var(--ease);
}
.site-header { background: var(--black); }
.site-header.is-solid { padding-top: .65rem; padding-bottom: .65rem; box-shadow: 0 2px 0 var(--yellow); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .7rem;
  background: var(--yellow);
}
.brand-icon .step-mark { width: 1.55rem; fill: var(--ink); }
.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.1;
  font-style: italic;
  letter-spacing: -.01em;
}
.brand-name small {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .08em;
  opacity: .7;
}
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); font-size: .9375rem; }
.site-nav a:not(.pill) { text-decoration: none; opacity: .85; }
.site-nav a:not(.pill):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .lang { font-weight: 700; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(5rem, 11vh, 7rem) var(--pad) clamp(3rem, 7vh, 5rem);
}
.hero-band {
  position: absolute;
  top: -10%;
  bottom: -2px;
  left: 61%;
  right: -40%;
  background: var(--yellow);
  transform-origin: 0 100%;
  transform: skewX(var(--slant));
  animation: flood 1.4s var(--ease) .15s both;
}
.hero-band::before { /* the first step, cut out of the band's foot */
  content: '';
  position: absolute;
  left: -14vw;
  bottom: 0;
  width: 14.2vw;
  height: 22%;
  background: var(--yellow);
}
@keyframes flood {
  from { transform: skewX(var(--slant)) scaleY(0); }
  to { transform: skewX(var(--slant)) scaleY(1); }
}
.hero-copy { position: relative; z-index: 2; max-width: 46rem; }
.hero-kicker {
  display: inline-block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--yellow-site);
  margin-bottom: 1.6rem;
  animation: rise .9s var(--ease) .1s both;
}
.hero h1 { animation: rise 1s var(--ease) .2s both; font-size: clamp(2.7rem, min(7vw, 12.5vh), 7.6rem); }
.hero h1 .hl { display: inline-block; font-size: .6em; line-height: 1.25; padding: .1em .22em .14em; margin: .18em 0 0 -.04em; }
.hero-lead {
  max-width: 34rem;
  margin: clamp(1rem, 2.6vh, 2rem) 0 clamp(1.2rem, 3.4vh, 2.6rem);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  color: rgba(244, 242, 236, .78);
  animation: rise 1s var(--ease) .35s both;
}
.hero .cta-row { animation: rise 1s var(--ease) .5s both; }
.hero .text-link { color: var(--cream); }

.hero-stage { position: relative; z-index: 1; height: min(78vh, 46rem); }
.hero-stage .shot { position: absolute; }
/* one screen, the app's own Today, large enough to read; sized by height too so it never runs off a short window */
.hero-stage { display: grid; align-items: center; justify-items: center; }
.hero-stage .hero-today { position: relative; width: min(30vw, 27rem, 46vh); margin-left: 8%; z-index: 2; --enter: .45s; }

.waveform {
  position: absolute;
  left: var(--pad);
  bottom: 1.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 46px;
}
.waveform i {
  width: 4px;
  height: var(--h);
  background: var(--yellow-site);
  border-radius: 2px;
  transform-origin: center;
  animation: bar 1.1s ease-in-out var(--d) infinite alternate;
}
@keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translate(-24px, 40px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- app screens */

.shot {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--ink);
  transform: translate(var(--rx), var(--ry)) rotate(calc(var(--tilt) + var(--wob)));
  transition: --rx 1.1s var(--ease), --ry 1.1s var(--ease), opacity .9s var(--ease), --wob .6s linear;
  will-change: transform;
}
.js .shot:not(.is-in) { opacity: 0; --rx: -40px; --ry: 90px; }
.js .shot.is-in { transition-delay: var(--enter, 0s), var(--enter, 0s), var(--enter, 0s), 0s; }
.shot img { width: 100%; }

[data-rise] { transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, var(--s, 0)) * 90ms); }
.js [data-rise]:not(.is-in) { opacity: 0; transform: translate(-26px, 46px); }

/* ---------------------------------------------------------------- bridge (input → output) */

.bridge {
  position: relative;
  background: var(--yellow);
  padding: clamp(6rem, 14vw, 12rem) var(--pad) clamp(6rem, 12vw, 10rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem 6vw;
  align-items: end;
  overflow: hidden;
}
.bridge h2 { position: relative; z-index: 1; }
.bridge-step {
  position: absolute;
  right: -10vw;
  top: 1vw;
  width: 58vw;
  opacity: .1;
}
.bridge-step .step-mark { width: 100%; fill: var(--ink); }
.bridge-body { position: relative; z-index: 1; max-width: 32rem; font-size: 1.125rem; }
.bridge-first { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.4; }
.bridge-quote { font-weight: 700; margin-top: 2rem; padding-left: 1rem; border-left: 4px solid var(--ink); }

/* ---------------------------------------------------------------- features */

.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 4rem 6vw;
  align-items: center;
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
}
.feature-copy { max-width: 31rem; }
.feature-copy h2 { margin-bottom: 1.6rem; }
.feature-copy p { font-size: 1.125rem; color: var(--ink-soft); }
.feature-art { position: relative; }

/* journal */
.journal-art { padding: 2rem 0 4rem 4rem; }
.journal-main { width: min(100%, 36rem); margin-left: auto; }
.handwrite {
  position: absolute;
  left: 0;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  line-height: 1.2;
  background: var(--yellow);
  padding: .35em .6em;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  rotate: -5deg;
}

/* mood: a yellow block, cut on the app icon's slant */
.feature-mood { color: var(--ink); isolation: isolate; }
.feature-mood::before {
  content: '';
  position: absolute;
  inset: 0 -20vw;
  z-index: -1;
  background: var(--yellow);
  transform: skewY(-4deg);
}
.feature-mood .feature-copy p { color: var(--ink); }
.mood-art { padding: 3rem 4rem; }

/* goal */
.feature-goal { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

/* habit: black, the rows climb like steps */
.feature-habit { color: var(--cream); isolation: isolate; }
.feature-habit::before {
  content: '';
  position: absolute;
  inset: 0 -20vw;
  z-index: -1;
  background: var(--black);
  transform: skewY(-4deg);
}
.feature-habit .feature-copy p { color: rgba(244, 242, 236, .78); }
/* together */
.feature-together { display: block; }
.together-head { max-width: 46rem; margin-bottom: 5rem; }
.together-head h2 { margin-bottom: 1.2rem; }
.together-quote { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--muted); }
.together-art { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 3vw; align-items: start; }
.t-item { position: relative; }
.t-match { margin-top: -7rem; }
.t-events { margin-top: 6rem; }
.t-note { margin-top: 2.6rem; max-width: 21rem; font-size: 1rem; }
.t-note b {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  margin-right: .5em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
}

/* ---------------------------------------------------------------- privacy */

.privacy {
  position: relative;
  background: var(--black);
  color: var(--cream);
  padding: clamp(6rem, 13vw, 11rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem 6vw;
  align-items: start;
}
.privacy h2 .hl { color: var(--ink); }
.privacy-lines { list-style: none; margin: 0; padding: 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.privacy-lines li { position: relative; padding: 0 0 1.4rem 2.6rem; line-height: 1.65; }
.privacy-lines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: 1.45rem;
  height: .85rem;
  background: var(--yellow);
  clip-path: polygon(0 100%, 8% 60%, 31% 60%, 42% 0, 100% 0, 95% 27%, 83% 27%, 69% 100%);
}
.privacy .text-link { grid-column: 2; justify-self: start; color: var(--yellow-site); }

/* ---------------------------------------------------------------- faq */

.faq {
  padding: clamp(6rem, 12vw, 10rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 3rem 6vw;
  align-items: start;
}
.faq h2 { position: sticky; top: 7rem; }
.faq-list { border-bottom: 2.5px solid var(--ink); }
.faq details { border-top: 2.5px solid var(--ink); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: .05em;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat,
    var(--surface);
  transition: transform .35s var(--ease), background-color .35s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--yellow); }
.faq summary:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.faq details p { max-width: 40rem; padding: 0 3rem 1.6rem 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------- closing */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  padding: clamp(5rem, 9vw, 8rem) var(--pad);
  padding-bottom: clamp(6rem, 10vw, 9rem);
}
.closing-copy { position: relative; z-index: 1; max-width: 46rem; }
.closing h2 { margin-bottom: 1.2rem; }
.closing-sub { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin-bottom: 2.4rem; }
.closing-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.2rem; }
.closing .pill { font-size: 1.125rem; padding: 1.1em 1.9em; }
.closing-step { position: absolute; right: 3vw; bottom: -1px; width: min(48vw, 46rem); }
.closing-step .step-mark { display: block; width: 100%; fill: var(--black); }
.closing-step[data-rise]:not(.is-in) { transform: translateY(40px); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--cream);
  padding: 5rem var(--pad) 2rem;
  font-size: .9375rem;
}
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem 6vw; }
.footer-brand img { width: min(100%, 17rem); margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(244, 242, 236, .7); font-weight: 700; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 2rem 3rem; }
.footer-links h2 { font-size: .8125rem; font-weight: 700; color: var(--yellow-site); margin-bottom: .9rem; letter-spacing: .04em; }
.footer-links a { display: block; text-decoration: none; opacity: .82; line-height: 2.1; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.footer-step { position: relative; margin: 4rem 0 1.5rem -1vw; width: 30vw; max-width: 22rem; }
.footer-step .step-mark { width: 100%; fill: var(--yellow); }
.footer-legal { position: relative; z-index: 1; margin: 0; font-size: .8125rem; color: rgba(244, 242, 236, .55); }
.footer-legal a { color: inherit; }

/* ---------------------------------------------------------------- legal pages */

.legal .site-header { background: var(--black); }
.legal-head {
  background: var(--black);
  color: var(--cream);
  padding: 9rem var(--pad) 4rem;
  position: relative;
  overflow: hidden;
}
.legal-head::after { /* the band again, small: the same doorway as the home page */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -12rem;
  width: 22rem;
  background: var(--yellow);
  transform: skewX(var(--slant));
  transform-origin: 0 100%;
  animation: flood 1.1s var(--ease) both;
}
.legal-head > * { position: relative; z-index: 1; max-width: 48rem; }
.crumbs { display: flex; gap: .6rem; font-size: .875rem; color: rgba(244, 242, 236, .6); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cream); text-decoration: underline; }
.legal-head h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-bottom: 1.5rem; }
.legal-summary { font-size: 1.125rem; color: rgba(244, 242, 236, .82); }
.legal-note { font-size: .9375rem; color: rgba(244, 242, 236, .6); }
.legal-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; font-size: .875rem; color: rgba(244, 242, 236, .7); margin: 2rem 0 0; }
.legal-meta a { color: var(--yellow-site); font-weight: 700; }
.draft { background: var(--yellow); color: var(--ink); font-weight: 700; padding: .2em .7em; border-radius: 999px; rotate: -2deg; }
.legal-body {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 44rem);
  gap: 3rem 6vw;
  padding: 5rem var(--pad) 7rem;
}
.legal-toc { position: sticky; top: 6rem; align-self: start; font-size: .875rem; }
.legal-toc p { font-weight: 700; color: var(--muted); margin-bottom: .8rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: .3rem 0 .3rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.5; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-current { color: var(--ink); font-weight: 700; border-left-color: var(--ink); }
.legal-text section { padding-bottom: 1.2rem; }
.legal-text h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.4;
  margin: 2.6rem 0 1rem;
}
.legal-text section:first-child h2 { margin-top: 0; }
/* the same yellow step the home page uses for its privacy promises, instead of a generic diamond */
.legal-text h2::before { content: ''; display: inline-block; width: 1.25em; height: .72em; background: var(--yellow); clip-path: polygon(0 100%, 8% 60%, 31% 60%, 42% 0, 100% 0, 95% 27%, 83% 27%, 69% 100%); margin-right: .55em; vertical-align: .02em; }
.legal-text p, .legal-text li { color: var(--ink-soft); }
.legal-text ul { list-style: none; padding-left: 0; margin: 0 0 1em; }
.legal-text li { position: relative; margin-bottom: .6em; padding-left: 1.7rem; }
.legal-text li::before { content: ''; position: absolute; left: 0; top: .62em; width: 1.05rem; height: .6rem; background: var(--ink); clip-path: polygon(0 100%, 8% 60%, 31% 60%, 42% 0, 100% 0, 95% 27%, 83% 27%, 69% 100%); }


/* ---------------------------------------------------------------- calls to action
   Three rungs, in the order a visitor should take them: become a member, get the app, and —
   quietly, last — the web version. */

.cta-ladder { display: grid; justify-items: start; gap: 2rem; animation: rise 1s var(--ease) .5s both; }
.cta-ladder > .pill { font-size: 1.125rem; padding: 1.1em 2em; }
.cta-member { display: grid; gap: .8rem; padding-top: 1.4rem; border-top: 1.5px solid currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); min-width: min(100%, 28rem); }
.cta-member-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
.cta-member p { margin: 0; font-size: .875rem; font-weight: 700; opacity: .8; }
.cta-web {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-size: .875rem;
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s;
}
.cta-web:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.cta-web .icon { width: 1em; height: 1em; }
.hero .cta-ladder { color: var(--cream); gap: clamp(1rem, 2.4vh, 2rem); }
.hero .cta-member { padding-top: clamp(.8rem, 2vh, 1.4rem); gap: .6rem; }
.hero .cta-ladder > .pill { padding: .95em 1.9em; }
.closing .cta-ladder { color: var(--ink); animation: none; }

.stores { display: inline-flex; flex-wrap: wrap; gap: .6rem; }
.store {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.15rem .6rem .9rem;
  border: 2px solid currentColor;
  border-radius: 13px;
  text-decoration: none;
  line-height: 1.05;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 1.0625rem;
  transition: transform .2s var(--ease), background-color .2s;
}
.store .icon { width: 1.6rem; height: 1.6rem; flex: none; }
.store small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .1em; }
a.store:hover { transform: translateY(-2px); }
.store.is-soon { cursor: default; }
.store-ink { color: var(--ink); background: var(--surface); box-shadow: 3px 3px 0 var(--ink); }
.store-foot { color: var(--cream); }

/* ---------------------------------------------------------------- app cards built in HTML
   The pieces a visitor can touch are rebuilt from the app's own tokens rather than shown as
   screenshots, so they can move: ink border, surface, 0-blur shadow (design-guideline v1.0). */

.app-card {
  margin: 0;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 12px 12px 0 var(--ink);
  color: var(--ink);
}

/* journal: the entry types itself the first time it is seen */
.journal-card {
  width: min(100%, 34rem);
  margin-left: auto;
  padding: 1.6rem 1.8rem 1.3rem;
  min-height: 21rem;
  transform: rotate(calc(var(--tilt) + var(--wob)));
  transition: --wob .6s linear;
}
.jc-nav { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; color: var(--muted); margin-bottom: 1.4rem; }
.jc-nav b { color: var(--ink); font-size: 1.15rem; font-family: var(--display); }
.jc-nav .muted { opacity: .45; }
.jc-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .6rem; }
/* the app's writing page is ruled paper (2026-10-16): a line under every line of text, and a few spare */
.jc-body {
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--ink-soft);
  min-height: 10em;
  margin: 0;
  background-image: repeating-linear-gradient(transparent 0 calc(2em - 1.5px), rgba(41, 40, 43, .22) calc(2em - 1.5px) 2em);
}
.jc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1rem; }
.jc-actions span { display: inline-flex; align-items: center; gap: .3em; font-size: .75rem; font-weight: 700; border: 1.5px dashed var(--ink); border-radius: 999px; padding: .35em .9em; }
.jc-actions .icon { width: 1em; height: 1em; }
.jc-saved { margin: 0; padding-top: .8rem; border-top: 1.5px solid var(--line); font-size: .75rem; color: var(--muted); }
.jc-saved::before { content: ''; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--green); margin-right: .5em; vertical-align: .1em; }
.jc-body.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: var(--ink);
  animation: caret .9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.journal-art .handwrite { left: -1rem; bottom: -1.5rem; }

/* mood: the stamp card beside a month of mood balls */
.feature-mood {
  grid-template-areas: 'copy art' 'box art';
  grid-template-rows: auto 1fr;
  row-gap: 2.6rem;
}
.feature-mood .feature-copy { grid-area: copy; align-self: end; }
.mood-art { grid-area: art; padding: 2rem 0 2rem 2rem; }
.mood-box-wrap { grid-area: box; }
.mood-box {
  position: relative;
  height: clamp(18rem, 28vw, 24rem);
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  rotate: 1.5deg;
}
.mb-head {
  position: absolute;
  inset: .9rem 1.2rem auto;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0;
  pointer-events: none;
  font-size: .8125rem;
  color: var(--muted);
}
.mb-head b { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.mb-head em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--ink); background: var(--yellow); border-radius: 999px; padding: .2em .8em; rotate: -3deg; }
.mb-ball {
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
  will-change: transform;
}
.mb-ball.is-picked { filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(3px 3px 0 var(--ink)); scale: 1.12; }
.mb-note {
  position: absolute;
  z-index: 4;
  width: min(17rem, calc(100% - 16px));
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .8rem .9rem .85rem;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: .875rem;
  line-height: 1.6;
}
.mb-note[hidden] { display: none; }
.mb-note.is-open { animation: notepop .3s var(--ease); }
@keyframes notepop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.mb-note img { width: 2.6rem; height: 2.6rem; flex: none; }
.mb-note time { display: block; font-size: .75rem; color: var(--muted); }
.mb-note b { display: block; font-family: var(--display); font-size: 1.05rem; margin: .05rem 0 .2rem; }
.mb-note p { margin: 0; color: var(--ink-soft); }
.mb-close { position: absolute; top: .2rem; right: .45rem; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem; }
.mb-ball.is-held { cursor: grabbing; filter: drop-shadow(3px 5px 0 rgba(41, 40, 43, .35)); }

/* the card: today's stamps on top, then 緊繃 / 高昂 / 低沉 / 平穩, one open at a time (as in the app) */
.mood-card { position: relative; width: min(100%, 30rem); margin: 0 auto; padding: 1.2rem 1.2rem 1.4rem; rotate: -2deg; }
.mc-hint {
  position: absolute;
  z-index: 3;
  right: 1.2rem;
  top: -.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .8125rem;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  padding: .3em .8em;
  rotate: 4deg;
  pointer-events: none;
  transition: opacity .3s;
}
.mood-card.is-touched .mc-hint { opacity: 0; }
.ms-day { padding: .7rem .9rem .75rem; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.ms-day-head { margin: 0 0 .5rem; font-size: .8125rem; color: var(--muted); }
.ms-day-head b { color: var(--ink); }
.ms-strip { display: flex; align-items: flex-start; gap: .65rem; min-height: 3.9rem; overflow: hidden; }
.ms-stamp, .ms-next { flex: none; display: grid; justify-items: center; gap: .15rem; font-size: .6875rem; line-height: 1.2; }
.ms-stamp { color: var(--muted); }
.ms-stamp img { width: 2.7rem; height: 2.7rem; padding: .22rem; background: var(--surface); border: 2px solid var(--ink); border-radius: 50%; }
.ms-stamp.is-new { animation: stamp .5s var(--ease); }
@keyframes stamp { 0% { transform: scale(1.7) rotate(-14deg); opacity: 0; } 60% { transform: scale(.92) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.ms-next { font-weight: 700; color: var(--ink); }
.ms-next i { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 2px dashed var(--ink); border-radius: 50%; }
.ms-next .icon { width: 1.1rem; height: 1.1rem; }
.ms-ask { margin: 1.1rem 0 .1rem; font-family: var(--display); font-weight: 900; font-size: 1.35rem; }
.ms-hint { margin: 0 0 .8rem; font-size: .8125rem; color: var(--muted); }
.ms-rows { display: grid; gap: .6rem; }
.ms-row { --c: var(--mood-yellow); position: relative; overflow: hidden; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.ms-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.ms-coral { --c: var(--mood-coral); }
.ms-yellow { --c: var(--mood-yellow); }
.ms-blue { --c: var(--mood-blue); }
.ms-green { --c: var(--mood-green); }
.ms-head { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem .65rem 1.25rem; font: inherit; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; transition: padding .35s var(--ease); }
.ms-name { flex: 1; display: grid; line-height: 1.3; }
.ms-name b { font-family: var(--display); font-size: 1.15rem; }
.ms-name small { font-size: .75rem; color: var(--muted); transition: opacity .25s; }
.ms-peek { display: flex; }
.ms-peek img { width: 1.6rem; height: 1.6rem; margin-left: -.3rem; }
.ms-balls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem .2rem; max-height: 0; padding: 0 .7rem; overflow: hidden; border-top: 0 dashed var(--line); transition: max-height .45s var(--ease), padding .45s var(--ease); }
.ms-row.is-open .ms-balls { max-height: 15rem; padding: .7rem .7rem .9rem; border-top-width: 1.5px; }
.ms-rows.has-open .ms-row:not(.is-open) .ms-head { padding-top: .4rem; padding-bottom: .4rem; }
.ms-rows.has-open .ms-row:not(.is-open) .ms-name small { display: none; }
.ms-ball { display: grid; justify-items: center; gap: .15rem; padding: .25rem 0; font: inherit; font-size: .75rem; color: var(--ink); background: none; border: 0; border-radius: 12px; cursor: pointer; }
.ms-ball img { width: 2.9rem; height: 2.9rem; transition: transform .25s var(--ease); }
.ms-ball:hover img { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.ms-ball:active img, .ms-ball.is-picked img { transform: scale(.84); }

/* goal: the card fills, then the review draws */
.goal-art { display: grid; gap: 0; padding: 1rem 0; }
.goal-card { width: min(100%, 27rem); overflow: hidden; rotate: -3deg; position: relative; z-index: 1; }
.gc-dark { background: var(--ink); color: var(--cream); padding: 1.3rem 1.4rem 1.2rem; }
.gc-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: 0 0 .5rem; }
.gc-kicker { margin: 0; font-size: .75rem; font-weight: 700; color: var(--yellow); }
.gc-edit { display: inline-flex; align-items: center; gap: .3em; font-size: .6875rem; font-weight: 700; color: var(--cream); border: 1.5px solid rgba(244, 242, 236, .55); border-radius: 999px; padding: .25em .75em; }
.gc-edit .icon { width: .95em; height: .95em; }
.gc-name { margin: 0 0 1rem; font-family: var(--display); font-weight: 900; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; }
.gc-bar { height: .65rem; border-radius: 999px; background: rgba(244, 242, 236, .18); overflow: hidden; }
.gc-bar i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: inherit; transition: width .8s var(--ease); }
[data-goal].is-in .gc-bar i { width: 68.3%; }
[data-goal].is-logged .gc-bar i { width: 70.3%; transition-duration: .7s; }
/* the ruler under the bar (2026-10-16): where 0 and the finish are, and the marks between */
.gc-scale { display: flex; justify-content: space-between; margin: .35rem 0 0; font-size: .625rem; line-height: 1; color: rgba(244, 242, 236, .6); }
.gc-left { margin: .55rem 0 0; font-size: .75rem; color: rgba(244, 242, 236, .7); position: relative; height: 1.4em; }
.gc-finish { margin: .25rem 0 0; font-size: .75rem; line-height: 1.5; color: rgba(244, 242, 236, .75); }
.gc-left span { position: absolute; left: 0; transition: opacity .3s, translate .3s var(--ease); }
.gc-after { opacity: 0; translate: 0 6px; }
[data-goal].is-logged .gc-before { opacity: 0; translate: 0 -6px; }
[data-goal].is-logged .gc-after { opacity: 1; translate: 0 0; color: var(--yellow); }
.gc-log { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.4rem; font-size: .8125rem; color: var(--muted); }
.gc-log > span:first-child { margin-right: auto; }
.gc-step { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); font-weight: 700; }
.gc-km { color: var(--ink); font-size: 1rem; min-width: 4.4em; text-align: center; }
.gc-save { background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: .25em .9em; font-weight: 700; transition: transform .15s; }
[data-goal].is-logged .gc-save { animation: press .4s var(--ease); }

/* 下一步: the goal's commitment ticket — a stub, a perforation, the step in highlighter */
.goal-ticket {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  width: min(90%, 24rem);
  margin: .5rem 0 0 2.2rem;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  rotate: 2deg;
  opacity: 0;
  translate: -20px 30px;
  transition: opacity .5s var(--ease) 1.2s, translate .6s var(--ease) 1.2s;
}
[data-goal].is-in .goal-ticket { opacity: 1; translate: 0 0; }
.gt-stub { flex: none; display: grid; place-items: center; width: 2.3rem; padding: .5rem 0; background: var(--yellow); border-right: 2px dashed var(--ink); writing-mode: vertical-rl; font-family: var(--display); font-weight: 900; font-size: .875rem; letter-spacing: .12em; }
:lang(en) .gt-stub { letter-spacing: .04em; }
.gt-body { display: grid; gap: .15rem; padding: .7rem .95rem .75rem; }
.gt-body small { font-size: .75rem; color: var(--muted); }
.gt-body b { font-family: var(--display); font-size: 1.05rem; line-height: 1.4; }
.gt-body b span { background: linear-gradient(transparent 44%, var(--highlight) 44%, var(--highlight) 94%, transparent 94%); padding: 0 .1em; }
@keyframes press { 40% { transform: translate(2px, 2px); } }

.review-card {
  width: min(100%, 25rem);
  margin: .4rem 0 0 auto;
  padding: 1.2rem 1.3rem 1.1rem;
  rotate: 3deg;
  position: relative;
  z-index: 2;
  opacity: 0;
  translate: -30px 60px;
  transition: opacity .6s var(--ease) 1.9s, translate .7s var(--ease) 1.9s;
}
[data-goal].is-in .review-card { opacity: 1; translate: 0 0; }
.rv-title { margin: 0 0 .6rem; display: inline-block; font-family: var(--display); font-weight: 900; font-size: .875rem; background: var(--ink); color: var(--yellow); padding: .2em .7em; border-radius: 6px; rotate: -3deg; }
.rv-stats { display: grid; gap: .1rem; margin: 0 0 .7rem; }
.rv-stats div { display: flex; justify-content: space-between; align-items: baseline; font-size: .8125rem; }
.rv-stats dt { color: var(--muted); }
.rv-stats dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.3rem; }
.rv-stats small { font-size: .6875rem; color: var(--muted); margin-left: .5em; font-weight: 700; }
.rv-ranges { display: flex; gap: .35rem; margin: 0 0 .5rem; }
.rv-ranges span { font-size: .6875rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: .15em .7em; }
.rv-ranges .on { background: var(--ink); color: var(--surface); }
.review-chart { width: 100%; height: auto; overflow: visible; }
[data-goal].is-instant *, [data-goal].is-instant { transition-delay: 0s !important; transition-duration: .01s !important; }
.rc-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) 2.1s; }
[data-goal].is-in .rc-line { stroke-dashoffset: 0; }
.rc-guide { stroke: var(--line); stroke-width: 1.5; opacity: 0; transition: opacity .3s 3.3s; }
.rc-dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .35s var(--ease) 3.4s; }
.rc-end { transition-delay: 3.5s; }
[data-goal].is-in .rc-guide { opacity: 1; }
[data-goal].is-in .rc-dot { scale: 1; }
.rv-note { margin: .4rem 0 0; font-size: .75rem; color: var(--muted); line-height: 1.6; opacity: 0; transition: opacity .4s 3.6s; }
.rv-note b { display: block; color: var(--ink); }
[data-goal].is-in .rv-note { opacity: 1; }

/* habit: rows are buttons — hover lifts them, a tap checks them off */
.sticker-ink { background: var(--ink); color: var(--yellow); border-color: var(--cream); box-shadow: 3px 3px 0 var(--yellow); }
.habit-wrap { position: relative; }
.habit-hint {
  position: absolute;
  right: 0;
  top: -2.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .875rem;
  color: var(--yellow);
  rotate: 4deg;
}
.habit-hint::after { content: ' ↓'; }
.habit-stairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.habit-stairs li { width: min(100%, 30rem); margin-left: calc((3 - var(--s)) * 9%); }
.habit-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--yellow);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.habit-row:hover { transform: translate(-3px, -8px) rotate(-1deg); box-shadow: 10px 15px 0 var(--yellow); }
.habit-row:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--yellow); }
.hr-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; }
.hr-icon .icon { width: 1.8rem; height: 1.8rem; }
.hr-text { flex: 1; display: grid; line-height: 1.35; }
.hr-text b { font-family: var(--display); font-size: 1.05rem; }
.hr-text small { font-size: .75rem; color: var(--muted); }
.hr-check { position: relative; flex: none; display: grid; }
.hr-btn, .hr-stamp { grid-area: 1 / 1; transition: opacity .25s, scale .3s var(--ease); }
.hr-btn { display: inline-flex; align-items: center; gap: .25em; font-size: .8125rem; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px; padding: .3em .85em .3em .6em; }
.hr-btn .icon { width: 1em; height: 1em; }
.hr-stamp { display: grid; justify-items: center; font-family: var(--display); font-weight: 900; font-size: .8125rem; line-height: 1.15; border: 2px solid var(--ink); border-radius: 8px; padding: .2em .55em; rotate: -6deg; opacity: 0; scale: 1.6; }
.hr-stamp time { font-family: var(--latin); font-weight: 700; font-size: .6875rem; }
.habit-row.is-done { background: var(--yellow-soft); }
.habit-row.is-done .hr-btn { opacity: 0; scale: .8; }
.habit-row.is-done .hr-stamp { opacity: 1; scale: 1; }
.habit-row.just-done { animation: pop .5s var(--ease); }
@keyframes pop { 40% { scale: 1.04; } }

/* together */
.t-match { margin-top: -7rem; }
.t-events { margin-top: 5rem; }
.match-fan { position: relative; padding-top: 3rem; }
.match-back { position: absolute; top: 0; left: 26%; width: 82%; }
.match-front { position: relative; width: 74%; left: -4%; }
.shot-ink { background: var(--ink); }

/* 活動: the detail page, rebuilt — 報名活動 fills a seat and turns into 你已報名 + 加到日曆 */
.event-card { position: relative; width: min(100%, 24rem); transform: rotate(calc(var(--tilt) + var(--wob))); transition: --wob .6s linear; }
.ev-head { padding: 1rem 1.2rem 1.1rem; background: var(--yellow); border-bottom: 2.5px solid var(--ink); border-radius: 21px 21px 0 0; }
.ev-head small { display: block; margin-bottom: .2rem; font-size: .6875rem; font-weight: 700; }
.ev-head b { font-family: var(--display); font-weight: 900; font-size: 1.35rem; line-height: 1.3; }
.ev-when { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem .8rem; }
.ev-date { flex: none; display: grid; justify-items: center; width: 3.5rem; overflow: hidden; line-height: 1.15; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.ev-date small { width: 100%; padding: .15rem 0; text-align: center; font-size: .625rem; font-weight: 700; color: var(--surface); background: var(--ink); }
.ev-date b { font-family: var(--display); font-weight: 900; font-size: 1.6rem; }
.ev-date em { padding-bottom: .2rem; font-style: normal; font-size: .625rem; }
.ev-time b { display: block; font-family: var(--display); font-size: 1.05rem; }
.ev-seats { display: flex; gap: .2rem; margin-top: .35rem; }
.ev-seats i { width: .72rem; height: .72rem; border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color .3s; }
.event-card.is-joined .ev-seats i:first-child { background: var(--yellow); }
.ev-rows { margin: 0 1.2rem; border-top: 2px solid var(--ink); }
.ev-rows div { display: flex; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .8125rem; line-height: 1.5; }
.ev-rows dt { flex: none; width: 4.2rem; padding-top: .1rem; font-size: .6875rem; color: var(--muted); }
:lang(en) .ev-rows dt { width: 4.6rem; }
.ev-rows dd { margin: 0; }
.ev-about { margin: .8rem 1.2rem 0; font-size: .8125rem; line-height: 1.7; color: var(--ink-soft); }
.ev-about b { display: block; margin-bottom: .15rem; font-family: var(--display); font-size: .9375rem; color: var(--ink); }
.ev-foot { padding: .9rem 1.2rem 1.1rem; }
.ev-join, .ev-cal { width: 100%; display: flex; justify-content: center; align-items: center; gap: .4rem; padding: .7rem; font: inherit; font-family: var(--display); font-weight: 900; font-size: 1rem; color: var(--ink); background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.ev-join { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ev-join:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.ev-join:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ev-cal .icon { width: 1.1rem; height: 1.1rem; }
.ev-joined { display: none; gap: .6rem; }
.event-card.is-joined .ev-join { display: none; }
.event-card.is-joined .ev-joined { display: grid; animation: notepop .35s var(--ease); }
.ev-status { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .55rem .8rem; border: 2px solid var(--ink); border-radius: 14px; line-height: 1.35; }
.ev-tick { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; color: var(--surface); background: var(--green); }
.ev-tick .icon { width: 1rem; height: 1rem; }
.ev-status b { display: block; font-size: .875rem; }
.ev-status small { font-size: .6875rem; color: var(--muted); }
.ev-cancel { justify-self: center; padding: .2rem; font: inherit; font-size: .75rem; color: var(--red); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.event-hint {
  position: absolute;
  right: -.8rem;
  bottom: 2.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .8125rem;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  padding: .3em .8em;
  rotate: -5deg;
  pointer-events: none;
  transition: opacity .3s;
}
.event-card.is-joined .event-hint { opacity: 0; }

/* year: a yellow block again, slanted the other way — the vision card large, the month letter small */
.feature-year { color: var(--ink); isolation: isolate; }
.feature-year::before { content: ''; position: absolute; inset: 0 -20vw; z-index: -1; background: var(--yellow); transform: skewY(3deg); }
.feature-year .feature-copy p { color: var(--ink); }
.year-art { position: relative; padding: 2rem 0 8rem; }
.vision-card { width: min(100%, 29rem); margin-left: 0; padding: 1.4rem 1.6rem 1.6rem; transform: rotate(calc(var(--tilt) + var(--wob))); transition: --wob .6s linear; }
.vc-top { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; }
.vc-pill { display: inline-flex; align-items: center; gap: .25em; padding: .2em .75em; font-size: .75rem; font-weight: 700; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px; }
.vc-pill .icon { width: .9em; height: .9em; }
.vc-top b { font-family: var(--display); font-size: .95rem; }
.vc-word { display: flex; align-items: flex-end; gap: .9rem; }
.vc-word strong { font-family: var(--display); font-weight: 900; font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 1; }
:lang(en) .vc-word strong { font-size: clamp(2.4rem, 4.4vw, 3.4rem); letter-spacing: -.02em; }
.vc-word span { display: grid; gap: .35rem; padding-bottom: .45rem; }
.vc-word small { font-size: .8125rem; font-weight: 700; }
.vc-word i { display: block; width: 0; height: .4rem; border-radius: 999px; background: var(--yellow); transition: width .6s var(--ease) .5s; }
[data-year].is-in .vc-word i { width: 3.2rem; }
.vc-meaning { margin: .5rem 0 1rem; font-size: .8125rem; color: var(--muted); }
.vc-goals { list-style: none; display: grid; gap: .8rem; margin: 0; padding: .9rem 0 0; border-top: 1.5px solid var(--line); }
.vc-goals li { display: flex; gap: .7rem; align-items: flex-start; transition: opacity .5s var(--ease), translate .6s var(--ease); transition-delay: calc(.7s + var(--s) * .15s); }
.js [data-year]:not(.is-in) .vc-goals li { opacity: 0; translate: -12px 10px; }
.vc-n { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; font-size: .8125rem; font-weight: 900; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 50%; }
.vc-goals b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.35; }
.vc-goals small { font-size: .75rem; color: var(--muted); }
.letter-card { position: absolute; right: -1rem; bottom: 0; z-index: 2; width: min(56%, 16rem); margin: 0; padding: 1rem 1.1rem .9rem; background: var(--yellow-soft); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 9px 9px 0 var(--ink); transform: rotate(calc(var(--tilt) + var(--wob))); transition: --wob .6s linear; }
.lc-year { margin: 0 0 .5rem; font-family: var(--display); font-weight: 900; font-size: .875rem; }
.lc-ticket { display: grid; justify-items: center; margin: 0 .3rem .8rem; padding: .35rem .6rem .45rem; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); rotate: -3deg; }
.lc-ticket small { font-size: .625rem; color: var(--muted); }
.lc-ticket b { font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1.1; }
:lang(en) .lc-ticket b { font-size: 1.7rem; }
.lc-moods { list-style: none; display: flex; justify-content: space-around; margin: 0 0 .5rem; padding: 0; }
.lc-moods li { display: grid; justify-items: center; line-height: 1.25; }
.lc-moods img { width: 2.3rem; height: 2.3rem; }
.lc-moods b { font-size: .6875rem; }
.lc-moods small { font-size: .625rem; color: var(--muted); }
.lc-stats { margin: 0 0 .6rem; text-align: center; font-size: .6875rem; font-weight: 700; }
.lc-foot { display: flex; justify-content: space-between; align-items: center; margin: 0; padding-top: .5rem; border-top: 1.5px solid rgba(41, 40, 43, .25); font-size: .625rem; }
.lc-brand { display: inline-flex; align-items: center; gap: .3em; font-weight: 900; font-style: italic; }
.lc-icon { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: .3rem; background: var(--ink); }
.lc-icon .step-mark { width: .75rem; fill: var(--yellow); }

/* ---------------------------------------------------------------- start: how to join
   The close of the community section, not a new chapter: 80px from the events copy above.
   Membership is the protagonist (the one thing a visitor can do today); download and sign-in
   sit quieter on the right. A 30° notch hands over to the black privacy section below. */

.feature-together { padding-bottom: 2.5rem; }
.start {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding: 2.5rem var(--pad) 6.5rem;
}
.start-main { grid-column: 1 / span 7; }
.start-main h2 { margin-bottom: 1.8rem; }
.start h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: .45rem; }
.start-main p { max-width: 28rem; font-size: 1.0625rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.start-main .pill .icon { width: 1.05em; height: 1.05em; }
.start-side { grid-column: 9 / span 4; display: grid; gap: 2rem; padding-top: clamp(6.5rem, 9vw, 8.5rem); }
.start-side h3 { font-size: 1.3rem; }
.start-side p { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .9rem; }
.store-quiet { box-shadow: none; }

/* ---------------------------------------------------------------- footer: the show, then the app */

.footer-show {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 38rem);
  gap: 2.4rem;
  align-items: center;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(244, 242, 236, .14);
}
.show-cover { display: block; border-radius: 18px; overflow: hidden; rotate: -3deg; box-shadow: 8px 8px 0 var(--yellow); transition: rotate .3s var(--ease), translate .3s var(--ease); }
.show-cover:hover { rotate: 0deg; translate: 0 -4px; }
.show-name { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 2rem); font-style: italic; margin-bottom: .5rem; }
.show-text p { color: rgba(244, 242, 236, .75); }
.show-text .show-name { color: var(--cream); }
.show-listen { margin: 1.2rem 0 .6rem; font-size: .8125rem; font-weight: 700; color: var(--yellow-site) !important; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.platform {
  --icon-cut: var(--black);
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: rgba(244, 242, 236, .08);
  color: var(--cream);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.platform .icon { width: 1.45rem; height: 1.45rem; }
.platform:hover { --icon-cut: var(--yellow); background: var(--ink); color: var(--yellow); transform: translateY(-3px); }
.show-site { display: inline-flex; align-items: center; gap: .35em; margin-left: .6rem; font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--cream); }
.show-site .icon { width: 1em; height: 1em; transition: translate .2s; }
.show-site:hover .icon { translate: 4px 0; }
.footer-brand .brand-icon { margin-bottom: 1rem; }
.footer-links .stores { display: grid; gap: .6rem; margin-bottom: .9rem; justify-items: start; }
.footer-links .store { color: var(--cream); opacity: 1; line-height: 1.1; }

.footer-links a.store { display: inline-flex; line-height: 1.05; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 900px) {
  .site-nav a:not(.pill):not(.lang) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; padding-bottom: 5rem; align-content: start; }
  .hero-band { left: 44%; top: 46%; }
  .hero-band::before { display: none; }
  .hero-stage { margin-top: 2.5rem; }
  .hero-stage { height: auto; justify-items: end; }
  .hero-stage .hero-today { width: min(72%, 20rem); margin: 0 4% 0 0; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .waveform { display: none; }
  .bridge, .feature, .feature-goal, .privacy, .faq { grid-template-columns: 1fr; }
  .bridge-step { width: 90vw; right: -18vw; top: auto; bottom: -10vw; }
  .feature-goal .feature-copy { order: -1; }
  .journal-art { padding: 1rem 0 4rem 0; }
  .mood-art { padding: 3rem 1.5rem; }
  .goal-art { padding: 0; }
  .review-card { margin: .6rem 0 0 auto; }
  .habit-stairs li { margin-left: calc((3 - var(--s)) * 5%); width: 90%; }
  .together-art { grid-template-columns: 1fr; gap: 4rem; }
  .t-match, .t-events { margin-top: 0; }
  .t-item { width: 86%; }
  .t-match { margin-left: auto; }
  .start { display: block; padding: 3rem var(--pad) 5rem; }
  .start-side { padding-top: 2rem; gap: 1.75rem; }
  .start-main .pill { width: 100%; justify-content: center; }
  .feature-together { padding-bottom: 0; }
  .feature-mood { grid-template-areas: 'copy' 'art' 'box'; grid-template-rows: none; }
  .closing { padding-bottom: 52vw; }
  .closing-step { width: 72vw; right: -4vw; }
  .cta-ladder { gap: 1.4rem; }
  .privacy .text-link { grid-column: 1; }
  .faq h2 { position: static; }
  .faq details p { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-show { grid-template-columns: 1fr; gap: 1.6rem; }
  .show-cover { width: 9rem; }
  .mood-art { padding: 1rem 0; }
  .year-art { padding: 1rem 0 2rem; }
  /* one column: the box is as wide as the page, so give the month room to pile below its head */
  .mood-box { height: min(26rem, calc(62vw + 4rem)); }
  .letter-card { position: relative; right: auto; bottom: auto; width: min(68%, 16rem); margin: -1.4rem 0 0 auto; }
  .goal-ticket { margin-left: 1rem; }
  .match-back { left: 22%; }
  .event-hint { right: 0; }
  .event-card { margin-left: auto; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-step { width: 50vw; }
  .legal-head { padding-top: 7rem; }
  .legal-head::after { right: -16rem; opacity: .9; }
  .legal-body { grid-template-columns: 1fr; padding-top: 3rem; }
  .legal-toc { position: static; }
}
@media (max-width: 520px) {
  .brand-name small { display: none; }
  .site-nav { gap: .7rem; }
  .shot { box-shadow: 8px 8px 0 var(--ink); border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .shot:not(.is-in), .js [data-rise]:not(.is-in) { --rx: 0px; --ry: 0px; transform: none; }
  .waveform i { transform: none; }
}

.privacy h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); }

@media (max-height: 760px) and (min-width: 901px) {
  .waveform { display: none; }
}
