/* Palepage — marketing site.
   One painted world: greige wall above, camel tabletop below.
   Type: EB Garamond (en) / Noto Serif TC (zh). No modern SaaS chrome. */

:root {
  --wall: #e1dbce;
  --wall-warm: #d8d1c2;
  --table: #b3a082;
  --table-edge: #9c8a6b;
  --paper: #f2ecdd;
  --ink: #4b453a;
  --ink-soft: #6c6454;
  --faint: #948b78;
  --line: rgba(75, 69, 58, 0.16);
  --rose: #e3c2bd;
  --sage: #c9d5ba;
  --blue: #a9c3da;
  --ochre: #eadfba;
  --slate: #5f6b7d;
  --serif: 'EB Garamond', 'Noto Serif TC', 'Songti SC', Georgia, serif;
  --stage-w: min(46vw, 44svh, 430px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* No smooth-scroll: anchor jumps are instant, in keeping with the app's
   motion grammar (states arrive; nothing glides for its own sake). */

body {
  font-family: var(--serif);
  background: var(--wall);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Painted-canvas grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}

::selection { background: var(--rose); color: var(--ink); }

a { color: var(--slate); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 1.5px solid var(--slate); outline-offset: 3px; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
:lang(zh-Hant) .eyebrow { letter-spacing: 0.42em; }

h1, h2, h3 { font-weight: 500; line-height: 1.22; letter-spacing: 0.005em; }

.display {
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  font-style: italic;
  font-weight: 500;
}
:lang(zh-Hant) .display { font-style: normal; }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
h3 { font-size: 1.28rem; margin-bottom: 10px; }

.muted { color: var(--ink-soft); }
.small { font-size: 14.5px; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 0;
}
.wordmark {
  font-style: italic;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
:lang(zh-Hant) .wordmark { font-style: normal; }
.nav-links { display: flex; gap: clamp(14px, 2.6vw, 30px); align-items: baseline; }
.nav-links a { font-size: 14.5px; text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* ---------- buttons: letterpress labels, not pills ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 26px 12px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 2px 3px 0 rgba(75, 69, 58, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 4px 0 rgba(75, 69, 58, 0.16); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(75, 69, 58, 0.14); }
.btn.quiet { border-color: var(--line); background: transparent; box-shadow: none; color: var(--ink-soft); }
.btn.quiet:hover { border-color: var(--ink-soft); color: var(--ink); }

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

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vh, 84px) 0 clamp(48px, 8vh, 96px); }
.hero-copy { max-width: 500px; }
.hero-copy .display { margin: 6px 0 26px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 42ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--faint); margin-top: 18px; }

/* The room — real app layers recomposed */
.stage {
  position: relative;
  width: var(--stage-w);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(75, 69, 58, 0.22);
  box-shadow: 0 18px 44px -22px rgba(75, 69, 58, 0.45);
  background: var(--wall-warm);
}
.stage > img { position: absolute; }
.stage .l-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .l-window { left: 9.5%; top: 9.8%; width: 56%; }
.stage .l-book { left: -2.5%; top: 45%; width: 105%; }
.stage .l-paper { filter: drop-shadow(0 1px 1px rgba(75, 69, 58, 0.10)); object-fit: contain; }
.stage .p1 { left: 7.5%; top: 49%;   width: 33%; height: 12%; transform: rotate(-0.7deg); }
.stage .p2 { left: 8%;   top: 61.2%; width: 32%; height: 11.5%; transform: rotate(0.6deg); }
.stage .p3 { left: 8.5%; top: 70.6%; width: 30%; height: 10.3%; transform: rotate(-0.9deg); }
.stage .p4 { left: 57%;  top: 48.8%; width: 33%; height: 12%; transform: rotate(0.8deg); }
.stage .p5 { left: 56.6%; top: 61%;  width: 33%; height: 11.5%; transform: rotate(-0.5deg); }
.stage .p6 { left: 58%;  top: 70.4%; width: 31%; height: 10.3%; transform: rotate(1deg); }
.stage .l-bell { left: 1.6%; top: 85%; width: 13%; }
.stage .l-key { left: 46.5%; top: 87.6%; width: 9%; }
.stage .l-inkwell { left: 77%; top: 85%; width: 16%; }
.stage .l-quill { left: 71%; top: 58.5%; width: 23%; transform: rotate(-4deg); }

/* 显影 — one staggered reveal on load, then stillness */
@media (prefers-reduced-motion: no-preference) {
  .stage > img, .hero-copy > * { opacity: 0; animation: appear 1.1s ease forwards; }
  .stage .l-bg { animation-delay: 0.05s; }
  .stage .l-window { animation-delay: 0.3s; }
  .stage .l-book { animation-delay: 0.5s; }
  .stage .p1 { animation-delay: 0.68s; } .stage .p4 { animation-delay: 0.76s; }
  .stage .p2 { animation-delay: 0.84s; } .stage .p5 { animation-delay: 0.92s; }
  .stage .p3 { animation-delay: 1s; }   .stage .p6 { animation-delay: 1.08s; }
  .stage .l-bell, .stage .l-key, .stage .l-inkwell { animation-delay: 1.2s; }
  .stage .l-quill { animation-delay: 1.3s; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.28s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.42s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.56s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.7s; }
}
@keyframes appear { to { opacity: 1; } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 40px; }
  .hero-copy { max-width: 560px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stage { width: min(78vw, 46svh, 390px); }
}

/* ---------- sections ---------- */

section { padding: clamp(56px, 9vh, 110px) 0; }
.rule { border: 0; border-top: 1px solid var(--line); }

.manifesto { text-align: center; padding: clamp(40px, 7vh, 80px) 0; }
.manifesto p {
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.4;
  max-width: 24ch;
  margin: 0 auto;
}
:lang(zh-Hant) .manifesto p { font-style: normal; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 56px); margin-top: 46px; }
.step { position: relative; }
.step-num {
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--faint);
  opacity: 0.55;
  display: block;
  margin-bottom: 14px;
}
.step-figure { position: relative; height: 190px; margin-bottom: 22px; }
.step-figure img { position: absolute; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.f-write .paper { left: 8%; top: 6%; width: 74%; transform: rotate(-1.4deg); filter: drop-shadow(0 2px 2px rgba(75,69,58,.12)); }
.f-write .quill { right: -4%; top: 10%; width: 52%; transform: rotate(-10deg); }
.f-keep .paper { left: 10%; top: 4%; width: 72%; transform: rotate(0.8deg); filter: drop-shadow(0 2px 2px rgba(75,69,58,.12)); }
.f-keep .kept-line {
  position: absolute; left: 16%; top: 34%; width: 58%;
  font-style: italic; font-size: 14.5px; color: var(--ink-soft);
  transform: rotate(0.8deg); text-align: center;
}
:lang(zh-Hant) .f-keep .kept-line { font-style: normal; }
.f-rest .book { left: -4%; top: 12%; width: 108%; }
.f-rest .paper { left: 30%; top: 26%; width: 34%; transform: rotate(-1deg); }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .step { text-align: center; }
  .step-figure { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* fading stages */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.6vw, 30px); margin-top: 46px; }
.stage-card { text-align: center; }
.stage-paper {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(75, 69, 58, 0.14);
  box-shadow: 1px 2px 0 rgba(75, 69, 58, 0.08);
  padding: 22px 16px 18px;
  min-height: 150px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
}
.stage-paper .kept { display: block; margin-top: 10px; font-style: italic; }
:lang(zh-Hant) .stage-paper .kept { font-style: normal; }
.stage-label { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.s2 .w { opacity: 0.42; } .s2 .kept { opacity: 0.96; }
.s3 .w { opacity: 0.1; }  .s3 .w.hold { opacity: 0.38; } .s3 .kept { opacity: 0.85; }
.s4 .w { opacity: 0.045; } .s4 .kept { opacity: 0.6; }
.reink { margin-top: 34px; text-align: center; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 820px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stages { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; } }

/* the room objects */
.objects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 4.5vw, 60px) clamp(34px, 5vw, 76px); margin-top: 46px; }
.object { display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: center; }
.object-figure { height: 92px; display: flex; align-items: center; justify-content: center; }
.object-figure img { max-height: 88px; max-width: 92px; width: auto; }
.object p { color: var(--ink-soft); font-size: 15.5px; }
.object h3 { margin-bottom: 6px; }
@media (max-width: 720px) { .objects { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* privacy & care — two ledgers on one shelf */
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 80px); }
.twin .col > p { color: var(--ink-soft); margin-bottom: 16px; max-width: 52ch; }
.twin .col ul { list-style: none; margin: 20px 0 24px; }
.twin .col li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15.5px; }
.twin .col li:last-child { border-bottom: 1px solid var(--line); }
.twin .col li strong { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) { .twin { grid-template-columns: 1fr; } }

/* closing cta */
.closing { text-align: center; padding-bottom: clamp(70px, 11vh, 140px); }
.closing .display { margin-bottom: 30px; }
.closing .hero-note { margin-top: 20px; }

/* ---------- footer: the tabletop ---------- */

footer {
  background: var(--table);
  border-top: 2px solid var(--table-edge);
  color: #4a4130;
  padding: 46px 0 40px;
  font-size: 14.5px;
}
.foot { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 300px; }
.foot-brand .wordmark { font-size: 1.2rem; }
.foot-brand p { margin-top: 8px; color: rgba(58, 49, 33, 0.75); }
.foot-links { display: flex; gap: 14px 34px; flex-wrap: wrap; }
.foot-links a { color: #4a4130; text-decoration-color: rgba(58, 49, 33, 0.4); }
.foot-objects { display: flex; gap: 26px; align-items: flex-end; opacity: 0.9; }
.foot-objects img { height: 44px; width: auto; }
.foot-legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(58, 49, 33, 0.25); color: rgba(58, 49, 33, 0.7); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }

/* ---------- inner pages (privacy / support): a page laid on the wall ---------- */

.sheet {
  background: var(--paper);
  border: 1px solid rgba(75, 69, 58, 0.18);
  box-shadow: 3px 5px 0 rgba(75, 69, 58, 0.10);
  max-width: 760px;
  margin: clamp(36px, 6vh, 70px) auto clamp(56px, 9vh, 110px);
  padding: clamp(30px, 5vw, 64px);
}
.sheet h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-style: italic; margin-bottom: 8px; }
:lang(zh-Hant) .sheet h1 { font-style: normal; }
.sheet .updated { color: var(--faint); font-size: 13.5px; margin-bottom: 34px; }
.sheet h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.sheet p, .sheet li { color: var(--ink-soft); font-size: 16px; }
.sheet ul { padding-left: 22px; margin: 10px 0; }
.sheet .back { display: inline-block; margin-top: 40px; }
