/* ================================================================
   Folio 官方網站 — 水彩鉛筆風格
   設計 token 對齊 app/STYLE_GUIDE.md（v2.1 五色色票）
   ================================================================ */

:root {
  --parchment: #F8F1E4;
  --cream: #FAF3E7;
  --sage: #6B8064;
  --sage-soft: #8FA28A;
  --lavender: #9B8FB5;
  --lavender-soft: #B8AECB;
  --walnut: #3D2F1F;
  --walnut-soft: #6B5641;
  --amber: #C9B89A;
  --amber-soft: #DCCAB0;
  --pink: #E8C4BD;
  --misty-blue: #A6B5C2;

  --font-serif: 'Noto Serif TC', 'EB Garamond', Georgia, serif;
  --font-sans: 'Noto Sans TC', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-italic: 'EB Garamond', 'Noto Serif TC', serif;

  --shadow-soft: 0 4px 24px rgba(61, 47, 31, 0.06);
  --shadow-paper: 0 1px 2px rgba(61, 47, 31, 0.04), 0 8px 32px rgba(61, 47, 31, 0.06);

  --radius-soft: 14px;
  --radius-card: 22px;

  --ease-watercolor: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scrollbar-gutter: stable; }
body {
  font-family: var(--font-sans);
  color: var(--walnut);
  background: var(--parchment);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* ---------- 紙感背景紋理（SVG noise + radial blob）---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(at 15% 20%, rgba(155, 143, 181, 0.08) 0%, transparent 45%),
    radial-gradient(at 85% 75%, rgba(107, 128, 100, 0.07) 0%, transparent 50%),
    radial-gradient(at 50% 110%, rgba(232, 196, 189, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
  mix-blend-mode: multiply;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--walnut);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; color: var(--walnut-soft); }

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.4s var(--ease-watercolor);
}
a:hover { color: var(--lavender); }

em, .italic { font-family: var(--font-italic); font-style: italic; }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(60px, 10vh, 120px) 0;
  position: relative;
}

/* ---------- Book ribbon bookmark（fixed 左上、永遠掛著、scroll-driven sway）---------- */
.book-ribbon {
  position: fixed;
  top: 0;
  left: clamp(20px, 4vw, 56px);
  width: clamp(34px, 4.2vw, 56px);
  height: auto;
  z-index: 90;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(2px 6px 10px rgba(61, 47, 31, 0.16));
  transform-origin: 50% 0;
  transform: translateY(var(--ribbon-sag, 0px)) rotate(var(--ribbon-rotate, 0deg));
  will-change: transform;
}
@media (max-width: 640px) {
  .book-ribbon { left: 12px; width: 28px; opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .book-ribbon { transform: none; }
}

/* ---------- Top Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 241, 228, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 184, 154, 0.25);
  transition: background 0.6s var(--ease-watercolor),
              border-color 0.6s var(--ease-watercolor),
              backdrop-filter 0.6s var(--ease-watercolor),
              -webkit-backdrop-filter 0.6s var(--ease-watercolor);
}
.nav.nav-over-hero {
  background: rgba(248, 241, 228, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-color: rgba(201, 184, 154, 0.08);
}
.nav.nav-scrolled {
  background: rgba(248, 241, 228, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 184, 154, 0.3);
}

/* Scroll progress bar — sage thread along bottom of nav */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-watercolor);
}
.nav.nav-scrolled .scroll-progress {
  opacity: 1;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--sage) 0%, var(--amber) 100%);
  transition: width 0.08s linear;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--walnut);
}
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--walnut-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-watercolor);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-toggle {
  margin-left: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--walnut-soft);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--amber-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.4s var(--ease-watercolor);
  min-width: 38px;
}
.lang-toggle:hover {
  background: var(--cream);
  color: var(--walnut);
  border-color: var(--walnut-soft);
}

@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 16px; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 80px 0 80px;
  position: relative;
  overflow: hidden;
}
/* Compilation scene — multi-layer watercolor hero bg (ref: website/) */
.compilation-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation:
    hero-scene-in 1.6s var(--ease-watercolor) 0.2s forwards,
    folio-scene-breathe 7.8s ease-in-out 1.8s infinite;
}
.compilation-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 32% 14% at 50% 92%, rgba(248, 241, 228, 0.92) 0%, rgba(248, 241, 228, 0.55) 40%, rgba(248, 241, 228, 0) 100%),
    linear-gradient(180deg, rgba(248, 241, 228, 0) 0%, rgba(248, 241, 228, 0) 38%, rgba(248, 241, 228, 0.55) 72%, rgba(248, 241, 228, 0.92) 100%);
  pointer-events: none;
}
.compilation-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 8% 60%, rgba(248, 241, 228, 0.55) 0%, rgba(248, 241, 228, 0.30) 18%, rgba(248, 241, 228, 0) 36%),
    radial-gradient(ellipse at 92% 60%, rgba(248, 241, 228, 0.45) 0%, rgba(248, 241, 228, 0.22) 20%, rgba(248, 241, 228, 0) 40%);
  pointer-events: none;
}
.compilation-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.book-glow-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  z-index: 2;
  pointer-events: none;
}
.hanging-moon {
  position: absolute;
  top: clamp(8px, 1.4vh, 24px);
  left: clamp(64px, 10vw, 150px);
  width: clamp(74px, 8.4vw, 140px);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% -260%;
  animation:
    moon-drop 1.8s cubic-bezier(0.32, 0, 0.2, 1) 0.4s forwards,
    moon-hang 6.4s ease-in-out 2.4s infinite;
  filter: drop-shadow(0 5px 16px rgba(255, 220, 150, 0.22));
}
@keyframes moon-drop {
  0%   { transform: translateY(-60px) rotate(-1.2deg); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(0) rotate(-0.3deg); opacity: 1; }
}
@keyframes moon-hang {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50%      { transform: translateY(3px) rotate(0.3deg); }
}
@media (max-width: 768px) {
  .hanging-moon {
    top: clamp(6px, 1.5vh, 20px);
    left: clamp(38px, 9vw, 68px);
    width: clamp(60px, 16vw, 95px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hanging-moon { opacity: 1; animation: none; transform: none; }
}
.plant-layer {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  filter:
    drop-shadow(0 0 6px rgba(255, 210, 135, 0.16))
    drop-shadow(0 0 14px rgba(205, 133, 58, 0.10));
}

/* ---------- Clouds：慢慢飄、低透 ---------- */
.cloud-layer {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  opacity: 0.78;
  filter: drop-shadow(0 4px 14px rgba(255, 220, 150, 0.12));
}
.cloud-small {
  top: 56%;
  right: 4%;
  width: clamp(110px, 13vw, 220px);
  opacity: 0.68;
  animation: cloud-drift-b 14s ease-in-out infinite -4s;
}
@keyframes cloud-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50%      { transform: translate3d(36px, 16px, 0) rotate(1.8deg); }
}
@media (max-width: 768px) {
  .cloud-small { top: 60%; right: 3%; width: clamp(90px, 22vw, 150px); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud-layer { animation: none; }
}
.plant-left {
  left: 2.2%;
  top: 56%;
  width: 11vw;
  opacity: 0.72;
  transform-origin: 48% 92%;
  animation: folio-plant-sway 6.6s ease-in-out infinite -1.4s;
}
.plant-left-leaf {
  left: 10.4%;
  top: 62%;
  width: 5vw;
  opacity: 0.6;
  transform: rotate(-12deg);
  transform-origin: 20% 70%;
  animation: folio-resting-leaf 7.8s ease-in-out infinite -3s;
}
.float-layer {
  position: absolute;
  z-index: 2;
  display: block;
  width: var(--w);
  left: var(--x);
  top: var(--y);
  opacity: var(--o, 0.72);
  filter:
    saturate(1.02)
    drop-shadow(4px 5px 1px rgba(126, 96, 52, 0.10))
    drop-shadow(0 0 7px rgba(255, 242, 188, 0.36))
    drop-shadow(0 0 18px rgba(229, 189, 104, 0.20));
  transform-origin: 50% 56%;
  will-change: transform;
}
.note-gold        { --w: 5.2vw; --x: 68%; --y: 8%;  --o: 0.58; animation: folio-drift-a 12.8s ease-in-out infinite; }
.note-lavender    { --w: 4.4vw; --x: 84%; --y: 17%; --o: 0.52; animation: folio-drift-b 14.2s ease-in-out infinite -2.6s; }
.note-rose        { --w: 4.0vw; --x: 58%; --y: 22%; --o: 0.52; animation: folio-drift-c 13.6s ease-in-out infinite -4.2s; }
.note-sage        { --w: 4.4vw; --x: 76%; --y: 32%; --o: 0.50; animation: folio-drift-b 13.2s ease-in-out infinite -5.1s; }
.note-amber       { --w: 3.2vw; --x: 53%; --y: 16%; --o: 0.55; animation: folio-drift-a 12.4s ease-in-out infinite -3.2s; }
.note-tiny-gold-a { --w: 3.0vw; --x: 62%; --y: 14%; --o: 0.48; animation: folio-drift-c 14s ease-in-out infinite -1.7s; }
.note-tiny-gold-b { --w: 2.8vw; --x: 88%; --y: 9%;  --o: 0.46; animation: folio-drift-a 15s ease-in-out infinite -7.1s; }
.note-tiny-rose-a { --w: 2.9vw; --x: 67%; --y: 26%; --o: 0.46; animation: folio-drift-b 14.6s ease-in-out infinite -4.4s; }
.note-tiny-rose-b { --w: 2.7vw; --x: 91%; --y: 28%; --o: 0.46; animation: folio-drift-c 15.4s ease-in-out infinite -6.2s; }
.note-tiny-sage-a { --w: 3.0vw; --x: 84%; --y: 38%; --o: 0.44; animation: folio-drift-a 13.8s ease-in-out infinite -7.6s; }
.note-tiny-lavender { --w: 2.9vw; --x: 75%; --y: 12%; --o: 0.46; animation: folio-drift-b 15.8s ease-in-out infinite -5.5s; }
.book-note-a { --w: 3.4vw; --x: 50%; --y: 40%; --o: 0.6; animation: folio-book-note-rise 11.4s ease-in-out infinite -1.4s; }
.book-note-b { --w: 3.2vw; --x: 56%; --y: 44%; --o: 0.54; animation: folio-book-note-rise 12.2s ease-in-out infinite -4.3s; }
.book-note-c { --w: 3.6vw; --x: 46%; --y: 47%; --o: 0.52; animation: folio-book-note-rise 13s ease-in-out infinite -6.1s; }
.leaf-right    { --w: 6.4vw; --x: 84%; --y: 52%; --o: 0.68; animation: folio-leaf-glide 7.8s ease-in-out infinite -2.7s; }
.leaf-small-a  { --w: 3.2vw; --x: 18%; --y: 36%; --o: 0.58; animation: folio-left-leaf 8.4s ease-in-out infinite -1.1s; }
.leaf-small-b  { --w: 2.9vw; --x: 93%; --y: 44%; --o: 0.52; animation: folio-leaf-swirl 9.2s ease-in-out infinite -5.3s; }
.leaf-small-c  { --w: 3.6vw; --x: 24%; --y: 44%; --o: 0.50; animation: folio-left-leaf 8.8s ease-in-out infinite -4.1s; }
.leaf-small-d  { --w: 2.4vw; --x: 31%; --y: 38%; --o: 0.48; animation: folio-left-leaf 7.6s ease-in-out infinite -2.2s; }
.leaf-small-e  { --w: 2.5vw; --x: 89%; --y: 22%; --o: 0.48; animation: folio-leaf-glide 8.2s ease-in-out infinite -5.8s; }
.leaf-small-f  { --w: 2.3vw; --x: 95%; --y: 36%; --o: 0.46; animation: folio-leaf-swirl 9s ease-in-out infinite -6.8s; }

@keyframes folio-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2.2deg); }
  28% { transform: translate3d(8px, -11px, 0) rotate(2deg); }
  62% { transform: translate3d(16px, -21px, 0) rotate(4.4deg); }
  82% { transform: translate3d(6px, -13px, 0) rotate(0.6deg); }
}
@keyframes folio-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2.8deg); }
  32% { transform: translate3d(6px, -13px, 0) rotate(-1.4deg); }
  58% { transform: translate3d(13px, -22px, 0) rotate(-3.4deg); }
  78% { transform: translate3d(5px, -10px, 0) rotate(1deg); }
}
@keyframes folio-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.4deg); }
  30% { transform: translate3d(10px, -10px, 0) rotate(2.4deg); }
  64% { transform: translate3d(18px, -18px, 0) rotate(4.6deg); }
  84% { transform: translate3d(8px, -8px, 0) rotate(1.4deg); }
}
@keyframes folio-leaf-glide {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg) scale(1); }
  45% { transform: translate3d(-16px, -18px, 0) rotate(-5deg) scale(1.025); }
  72% { transform: translate3d(-7px, -10px, 0) rotate(-1deg) scale(1.012); }
}
@keyframes folio-leaf-swirl {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.58); }
  50% { transform: translate3d(14px, -18px, 0) rotate(8deg) scale(0.62); }
}
@keyframes folio-left-leaf {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(0.72); }
  50% { transform: translate3d(10px, -13px, 0) rotate(5deg) scale(0.76); }
}
@keyframes folio-book-note-rise {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4.5deg) scale(0.78); }
  36% { transform: translate3d(10px, -16px, 0) rotate(2.4deg) scale(0.81); }
  66% { transform: translate3d(18px, -27px, 0) rotate(5deg) scale(0.84); }
  84% { transform: translate3d(8px, -14px, 0) rotate(1.2deg) scale(0.81); }
}
@keyframes folio-plant-sway {
  0%, 100% { transform: rotate(-0.8deg) translate3d(0, 0, 0); }
  50% { transform: rotate(1.8deg) translate3d(2px, -2px, 0); }
}
@keyframes folio-resting-leaf {
  0%, 100% { transform: rotate(-12deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-9deg) translate3d(2px, -1px, 0); }
}
@keyframes folio-scene-breathe {
  0%, 100% { transform: scale(1); filter: saturate(1) brightness(1); }
  50% { transform: scale(1.006); filter: saturate(1.03) brightness(1.025); }
}
@keyframes hero-scene-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (max-width: 768px) {
  .compilation-bg { object-position: 50% 32%; }
  .float-layer { opacity: calc(var(--o, 0.72) * 0.88); }
  .plant-left { left: 0%; top: 54%; width: 18vw; }
  .plant-left-leaf { left: 8%; top: 56%; width: 9vw; }
  .note-gold        { --w: 11vw; --x: 60%; --y: 8%; }
  .note-lavender    { --w: 9vw;  --x: 80%; --y: 18%; }
  .note-rose        { --w: 8vw;  --x: 48%; --y: 14%; }
  .note-sage        { --w: 9vw;  --x: 72%; --y: 30%; }
  .note-amber       { --w: 7vw;  --x: 42%; --y: 22%; }
  .leaf-right       { --w: 14vw; --x: 82%; --y: 56%; }
  /* Mobile decluttering: hide low-priority float layers to cut LCP + visual noise */
  .mobile-hide { display: none !important; }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-top: auto;
  padding-bottom: 2vh;
}
.hero-content .word { display: inline-block; }
.hero-content .word-2 { margin-right: 0.4em; }
.hero-content .line-2-wrap { display: inline-block; }

/* 從一本書：從上往下浮現 */
.hero-content .word-1 {
  opacity: 0;
  animation: fall-down 1.0s var(--ease-watercolor) 0.5s forwards;
}
/* 遇見 可能的緣分：淡入 */
.hero-content .line-2-wrap {
  opacity: 0;
  animation: hero-fade 1.3s var(--ease-watercolor) 1.4s forwards;
}
/* 底下資訊（lede / btn / caption）：從下往上浮現 1.3s */
.hero-content .lede,
.hero-content .btn-row,
.hero-content .hero-caption {
  opacity: 0;
  animation: rise-up 1.3s var(--ease-watercolor) 2.5s forwards;
}
@keyframes fall-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content .word-1,
  .hero-content .line-2-wrap,
  .hero-content .lede,
  .hero-content .btn-row,
  .hero-content .hero-caption {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
.hero-content .eyebrow {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--sage);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--amber-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-content h1 {
  margin-bottom: 24px;
  position: relative;
}
.hero-content h1 .accent {
  position: relative;
  display: inline-block;
}
@property --progress {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: true;
}
.hero-content h1 .accent {
  --accent-sage: #4E8C48;
  display: inline-block;
  color: var(--accent-sage);
}
.hero-content .lede {
  font-size: 1.15rem;
  color: var(--walnut-soft);
  margin: 0 auto 36px;
  max-width: 520px;
}
.hero-caption {
  margin-top: 36px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--walnut-soft);
  opacity: 0.78;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .hero-bg { height: 42vh; top: 70px; }
  .hero-content { padding-bottom: 2vh; }
}

/* ---------- CTA buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.5s var(--ease-watercolor);
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--sage);
  background-image: url('../assets/button_sage_wash.webp');
  background-size: cover;
  background-position: center;
  color: var(--cream);
}
.btn-primary:hover {
  /* brightness() not bg-color — keeps the texture on hover */
  filter: brightness(0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 47, 31, 0.15);
}
.btn-ghost {
  background: transparent;
  color: var(--walnut);
  border-color: var(--amber);
}
.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--walnut);
  color: var(--walnut);
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-head .kicker {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--lavender);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: block;
}
.section-head p { color: var(--walnut-soft); font-size: 1.05rem; }
.section-head .kicker-sub {
  font-size: 0.88rem;
  color: var(--walnut-soft);
  opacity: 0.75;
  font-style: italic;
}

/* ---------- Modes（三模式介紹）---------- */
.modes-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.modes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/modes-bg.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.32;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}
.modes-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--parchment) 0%,
      rgba(248, 241, 228, 0) 14%,
      rgba(248, 241, 228, 0) 82%,
      var(--parchment) 100%
    );
  pointer-events: none;
  z-index: -1;
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mode-card {
  background: rgba(250, 243, 231, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--amber-soft);
  border-radius: var(--radius-card);
  padding: 240px 28px 32px;
  position: relative;
  transition: all 0.6s var(--ease-watercolor);
  overflow: hidden;
}
.mode-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 290px;
  background-size: cover;
  background-position: center 35%;
  -webkit-mask-image: linear-gradient(180deg,
    black 0%,
    black 55%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%);
  mask-image: linear-gradient(180deg,
    black 0%,
    black 55%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%);
  z-index: 0;
}
.mode-card > *:not(.mode-art) {
  position: relative;
  z-index: 1;
}
.mode-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  transition: all 0.8s var(--ease-watercolor);
}
.mode-card::before { background: var(--amber); }
.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-paper);
}
.mode-card:hover::before { opacity: 0.5; }
.mode-badge {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.85rem;
  padding: 3px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.5);
}
.mode-card .mode-badge {
  color: var(--walnut);
  border: 1px solid var(--amber);
  background: rgba(255, 255, 255, 0.5);
}
.mode-card h3 {
  margin-bottom: 14px;
  position: relative;
}
.mode-card .tagline {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--walnut);
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.mode-card .desc { color: var(--walnut-soft); font-size: 0.95rem; }
.mode-card .desc-aux {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--amber-soft);
  font-size: 0.85rem;
  color: var(--walnut-soft);
  opacity: 0.85;
}
.modes-matrix-note {
  text-align: center;
  margin-top: 48px;
  font-size: 1rem;
  color: var(--walnut);
  font-family: var(--font-serif);
  line-height: 1.85;
  opacity: 0.9;
  letter-spacing: 0.02em;
}
.modes-matrix-note .matrix-line-soft {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--lavender);
  font-size: 0.98rem;
  display: inline-block;
  margin-top: 4px;
}
@media (max-width: 768px) { .modes-grid { grid-template-columns: 1fr; } }

/* ---------- How it works（流程）---------- */
.flow {
  background:
    linear-gradient(180deg,
      var(--parchment) 0%,
      rgba(250, 243, 231, 0.5) 60px,
      var(--cream) 140px,
      var(--cream) 100%);
  position: relative;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.flow-grid::before {
  content: '';
  position: absolute;
  top: 112px; left: 8%; right: 8%;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 14px);
  background-size: 14px 2px;
  background-repeat: repeat-x;
  opacity: 0.45;
  z-index: 0;
  animation: dashed-flow 6s linear infinite;
}
@keyframes dashed-flow {
  0% { background-position: 0 0; }
  100% { background-position: 14px 0; }
}
.flow-step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.flow-step .flow-icon {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 12px;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.9s var(--ease-watercolor), transform 0.9s var(--ease-watercolor);
  filter: drop-shadow(0 4px 12px rgba(61, 47, 31, 0.08));
}
.flow-step.flow-on .flow-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.flow-step .num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--sage);
  color: var(--sage);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all 0.6s var(--ease-watercolor);
  position: relative;
  z-index: 2;
}
.flow-step:nth-child(2) .num { border-color: var(--lavender); color: var(--lavender); }
.flow-step:nth-child(3) .num { border-color: var(--amber); color: var(--walnut); }
.flow-step:nth-child(4) .num { border-color: var(--sage); color: var(--sage); }
/* Scroll-triggered pulse on the num when step lights up */
.flow-step.flow-on .num {
  background: var(--sage);
  color: var(--cream);
  box-shadow: 0 0 0 8px rgba(107, 128, 100, 0.12);
}
.flow-step.flow-on:nth-child(2) .num {
  background: var(--lavender); color: var(--cream);
  box-shadow: 0 0 0 8px rgba(155, 143, 181, 0.12);
}
.flow-step.flow-on:nth-child(3) .num {
  background: var(--amber); color: var(--walnut);
  box-shadow: 0 0 0 8px rgba(201, 184, 154, 0.18);
}
.flow-step.flow-on:nth-child(4) .num {
  background: var(--sage); color: var(--cream);
  box-shadow: 0 0 0 8px rgba(107, 128, 100, 0.12);
}
/* Hover keeps existing behavior, plus icon tilt */
.flow-step:hover .num { transform: scale(1.05); }
.flow-step:hover .flow-icon { transform: translateY(-2px) rotate(-1.5deg); }
.flow-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.92rem; color: var(--walnut-soft); }
@media (max-width: 768px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid::before { display: none; }
}
@media (max-width: 480px) { .flow-grid { grid-template-columns: 1fr; } }

/* ---------- Flow details（v2.2 細節）---------- */
.flow-details {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px dashed var(--amber-soft);
}
.details-head {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1rem;
  color: var(--lavender);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  max-width: 880px;
  margin: 0 auto;
}
.detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.detail .dot {
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 9px;
  box-shadow: 0 0 0 4px rgba(107, 128, 100, 0.15);
}
.detail:nth-child(2) .dot { background: var(--lavender); box-shadow: 0 0 0 4px rgba(155, 143, 181, 0.15); }
.detail:nth-child(3) .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(201, 184, 154, 0.2); }
.detail:nth-child(4) .dot { background: var(--pink); box-shadow: 0 0 0 4px rgba(232, 196, 189, 0.2); }
.detail h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--walnut);
}
.detail p {
  font-size: 0.9rem;
  color: var(--walnut-soft);
  margin: 0;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .details-grid { grid-template-columns: 1fr; gap: 22px; }
}


/* ---------- Solo：也是個人書房 ---------- */
.solo {
  background: var(--cream);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.solo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/welcome.webp');
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: cover;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}
.solo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--cream) 0%,
      rgba(250, 243, 231, 0) 14%,
      rgba(250, 243, 231, 0) 86%,
      var(--cream) 100%);
  pointer-events: none;
  z-index: -1;
}
.solo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.solo-col {
  padding: 16px 32px;
  position: relative;
}
.solo-grid {
  position: relative;
}
.solo-grid::before {
  content: '';
  position: absolute;
  top: 16%;
  bottom: 16%;
  left: 50%;
  width: 1px;
  background-image: linear-gradient(180deg,
    transparent 0%,
    var(--amber-soft) 25%,
    var(--amber-soft) 75%,
    transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 640px) {
  .solo-grid::before { display: none; }
}
.solo-col .solo-tag {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--lavender);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--amber-soft);
  padding: 3px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}
.solo-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--walnut);
  margin-bottom: 10px;
  line-height: 1.5;
}
.solo-col p {
  font-size: 0.95rem;
  color: var(--walnut-soft);
  line-height: 1.75;
  margin: 0;
}
.solo-note {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1rem;
  color: var(--walnut-soft);
  opacity: 0.92;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .solo-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Launch：Coming soon（開放式 layout）---------- */
.launch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.launch::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/launch-bg.webp');
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}
.launch::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--parchment) 0%,
      rgba(248, 241, 228, 0) 14%,
      rgba(248, 241, 228, 0) 86%,
      var(--parchment) 100%);
  pointer-events: none;
  z-index: -1;
}
.launch-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.launch-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 24px;
  box-shadow: 0 8px 28px rgba(61, 47, 31, 0.12);
}
.launch-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
  padding: 4px 0;
  position: relative;
}
.launch-tag::before,
.launch-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--sage-soft);
}
.launch-tag::before { right: calc(100% + 12px); }
.launch-tag::after { left: calc(100% + 12px); }
.launch h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}
.launch-sub {
  color: var(--walnut-soft);
  margin-bottom: 28px;
  font-size: 0.98rem;
  line-height: 1.75;
}
.store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  min-width: 200px;
  background: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 14px;
  color: var(--cream);
  font-family: var(--font-sans);
  cursor: not-allowed;
  text-align: left;
  transition: all 0.4s var(--ease-watercolor);
  opacity: 0.82;
  overflow: hidden;
}
.store-btn:hover {
  background: #5a6f55;
  border-color: #5a6f55;
  opacity: 0.95;
}
.store-btn .sb-glyph {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  opacity: 0.95;
}
.store-btn .sb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-btn .sb-prefix {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-family: var(--font-sans);
}
.store-btn .sb-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.store-btn .sb-state {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(250, 243, 231, 0.18);
  color: var(--cream);
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0.85;
}
.launch-note {
  margin: 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--walnut-soft);
  opacity: 0.7;
}

/* Live state — iOS already on App Store; walnut = official store-badge look */
.store-btn-live {
  background: var(--walnut);
  border-color: var(--walnut);
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
}
.store-btn-live:hover {
  background: var(--walnut-soft);
  border-color: var(--walnut-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 47, 31, 0.32);
}
.store-btn-live .sb-state-live {
  background: rgba(250, 243, 231, 0.95);
  color: var(--walnut);
  font-weight: 600;
  opacity: 1;
}
.launch-tag-live {
  background: rgba(61, 47, 31, 0.12);
  color: var(--walnut);
  font-weight: 500;
}

@media (max-width: 480px) {
  .store-row { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; }
}

/* ---------- Philosophy quote ---------- */
.philosophy {
  text-align: center;
  padding: 100px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      var(--cream) 0%,
      rgba(248, 241, 228, 0.5) 60px,
      var(--parchment) 140px,
      var(--parchment) 100%);
}
.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/philosophy-bg.webp');
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: cover;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}
.philosophy::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(248, 241, 228, 0.95) 0%,
      rgba(248, 241, 228, 0) 18%,
      rgba(248, 241, 228, 0) 82%,
      var(--parchment) 100%);
  pointer-events: none;
  z-index: -1;
}
.philosophy blockquote {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.7;
  color: var(--walnut);
  font-style: italic;
  position: relative;
}
.philosophy blockquote::before,
.philosophy blockquote::after {
  font-family: var(--font-italic);
  font-size: 4rem;
  color: var(--amber);
  line-height: 0;
  position: absolute;
  opacity: 0.6;
}
.philosophy blockquote::before { content: '"'; top: 20px; left: -10px; }
.philosophy blockquote::after { content: '"'; bottom: -20px; right: -10px; }
.philosophy cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--walnut-soft);
  letter-spacing: 0.05em;
}


/* ---------- Footer ---------- */
.footer {
  background: var(--walnut);
  color: var(--cream);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer .container { max-width: 1100px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}
.footer-brand img { width: 32px; border-radius: 6px; }
.footer-tagline {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--amber-soft);
  font-size: 0.92rem;
  max-width: 280px;
  line-height: 1.55;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a {
  color: var(--cream);
  font-size: 0.92rem;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-watercolor);
}
.footer a:hover { opacity: 1; color: var(--amber-soft); }
.footer-bottom {
  border-top: 1px solid rgba(201, 184, 154, 0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--amber-soft);
  opacity: 0.7;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages（terms / privacy）---------- */
.legal {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 820px;
  margin: 0 auto;
}
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--amber-soft);
}
.legal-header .meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--walnut-soft);
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-header .meta span::before { content: '•'; margin-right: 8px; color: var(--amber); }
.legal-header .meta span:first-child::before { display: none; }
.legal h1 { margin-bottom: 8px; }
.legal-header .subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--lavender);
  font-size: 1.05rem;
}
.legal-banner {
  background: rgba(155, 143, 181, 0.1);
  border-left: 3px solid var(--lavender);
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--walnut-soft);
}
.legal-banner strong { color: var(--walnut); }

.legal h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--amber-soft);
}
.legal h2 .num {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--sage);
  margin-right: 12px;
  font-weight: 400;
}
.legal h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--walnut);
}
.legal ul {
  list-style: none;
  padding-left: 0;
}
.legal ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--walnut-soft);
  line-height: 1.7;
}
.legal ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
}
.legal ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}
.legal ul ul li::before { content: '·'; left: 6px; color: var(--lavender); }

.legal .draft-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--lavender);
  color: var(--cream);
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.legal .toc {
  background: var(--cream);
  border: 1px solid var(--amber-soft);
  border-radius: var(--radius-soft);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal .toc h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut-soft);
  margin-bottom: 12px;
}
.legal .toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 32px;
}
.legal .toc li {
  counter-increment: toc;
  padding: 4px 0;
  font-size: 0.92rem;
  break-inside: avoid;
}
.legal .toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--lavender);
  margin-right: 12px;
}
@media (max-width: 640px) {
  .legal .toc ol { columns: 1; }
  .legal { padding-top: 110px; }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease-watercolor), transform 1.2s var(--ease-watercolor);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ---------- Decorative blob（背景水彩）---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
  animation: blob-drift 18s var(--ease-watercolor) infinite;
}
.blob.b1 { width: 360px; height: 360px; background: var(--sage); top: -100px; right: -120px; }
.blob.b2 { width: 320px; height: 320px; background: var(--lavender); bottom: -100px; left: -100px; animation-delay: -8s; }
.blob.b3 { width: 280px; height: 280px; background: var(--pink); top: 40%; left: 50%; animation-delay: -14s; opacity: 0.18; }

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
