:root {
  color-scheme: light;
  --paper: #fdfbf8;
  --grid: rgba(120, 110, 100, 0.09);
  --ink: #4b3a2f;          /* brown from the app icon */
  --ink-soft: #7a685b;
  --pink: #f1acc3;         /* customPink */
  --pink-soft: #ffd9e7;    /* detailBlockColor */
  --rose: #deb9c8;         /* app icon background */
  --blue: #4a6de1;         /* customBlue */
  --card: #ffffff;
  --line: rgba(75, 58, 47, 0.14);
  --shadow: 0 18px 40px -18px rgba(75, 58, 47, 0.35);
  --hand: "LXGW WenKai TC", "Huninn", "PingFang TC", sans-serif;
  --body: "Huninn", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  background-color: var(--paper);
  /* notebook grid paper, like the app's backgrounds */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .eyebrow, .scribble, .tag, .brand, figcaption, .stats b {
  font-family: var(--hand);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* pink highlighter stroke */
.hl {
  color: inherit;
  background: linear-gradient(transparent 55%, var(--pink) 55%, var(--pink) 90%, transparent 90%);
  padding: 0 0.15em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px dashed var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  font: inherit; font-size: 0.85rem; color: var(--ink);
  background: none; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 2px 12px; cursor: pointer;
}
.btn-small {
  text-decoration: none; font-size: 0.9rem; font-weight: 700;
  background: var(--ink); color: var(--paper);
  padding: 7px 16px; border-radius: 999px;
}

/* ---------- LAYOUT ---------- */
section { max-width: var(--max); margin: 0 auto; padding: 72px 16px; }
.center { text-align: center; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.35; margin: 0 0 16px; text-wrap: balance; }

/* ---------- HERO ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding-top: 56px;
}
.eyebrow { color: var(--ink-soft); margin: 0 0 8px; font-size: 1.1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.25; margin: 0 0 20px; }
.hero h1 .small { display: block; font-size: 0.5em; color: var(--ink-soft); }
html[lang="zh-Hant"] .hero h1 .hl { white-space: nowrap; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 30em; margin: 0 0 28px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.note { color: var(--ink-soft); font-size: 0.9rem; }

.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 9px 22px 9px 16px; border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 4px 4px 0 var(--pink);
}
.appstore:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
.appstore svg { width: 26px; height: 30px; }
.appstore span { display: flex; flex-direction: column; line-height: 1.1; }
.appstore small { font-size: 0.7rem; font-family: -apple-system, system-ui, sans-serif; }
.appstore b { font-size: 1.35rem; font-family: -apple-system, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }

.stats { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 2rem; line-height: 1.1; }
.stats span { color: var(--ink-soft); font-size: 0.9rem; }

.hero-art { position: relative; height: 620px; }
.shot {
  position: absolute; width: 290px; border-radius: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.shot-front { left: 50%; top: 10px; transform: translateX(-30%) rotate(3deg); z-index: 2; }
.shot-back { left: 50%; top: 50px; transform: translateX(-95%) rotate(-6deg); opacity: .95; }
.doodle { position: absolute; font-size: 2rem; color: var(--pink); animation: bob 4s ease-in-out infinite; }
.d1 { top: 0; left: 8%; }
.d2 { bottom: 40px; right: 2%; font-size: 2.6rem; animation-delay: -1.5s; }
.d3 { bottom: 10px; left: 4%; color: var(--ink-soft); animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(8deg); } }

/* ---------- AREAS ---------- */
.areas { text-align: center; padding-top: 24px; padding-bottom: 24px; }
.scribble { font-size: 1.4rem; margin: 0 0 18px; }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.chips li {
  font-family: var(--hand); font-weight: 700; font-size: 1.1rem;
  padding: 6px 20px; border-radius: 999px;
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--c, var(--pink)) 45%, var(--card));
  box-shadow: 3px 3px 0 var(--ink);
}
.chips-soft li { background: var(--card); box-shadow: none; border-style: dashed; font-size: 1rem; }

/* ---------- FEATURES ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0;
}
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.flip .f-text { order: 2; }
.tag {
  display: inline-block; font-size: 0.95rem;
  background: var(--pink-soft); padding: 2px 14px; border-radius: 8px;
  margin-bottom: 12px; transform: rotate(-2deg);
}
.f-text p { color: var(--ink-soft); margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin: 6px 0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--ink);
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: var(--pink); border-radius: 50%; font-size: 0.8rem; margin-top: 4px;
}
.f-art { display: flex; justify-content: center; }
.f-art img {
  width: 300px; border-radius: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: rotate(2deg); transition: transform .3s ease;
}
.feature.flip .f-art img { transform: rotate(-2deg); }
.f-art img:hover { transform: rotate(0) scale(1.02); }
.f-art.pair { gap: 18px; }
.f-art.pair img { width: 240px; }
.f-art.pair img:first-child { transform: rotate(-4deg) translateY(20px); }
.f-art.pair img:last-child { transform: rotate(3deg); }

/* ---------- ANIMATIONS ---------- */
.sub { color: var(--ink-soft); max-width: 36em; margin: 0 auto 40px; }
.videos { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.videos figure { margin: 0; text-align: center; }
.videos video {
  width: 200px; aspect-ratio: 612 / 1280; object-fit: cover;
  border-radius: 26px; border: 3px solid var(--ink); background: var(--pink-soft);
  box-shadow: 6px 6px 0 var(--pink);
}
.videos figure:nth-child(2) video { transform: translateY(24px); }
figcaption { margin-top: 12px; font-size: 1.2rem; }
.videos figure:nth-child(2) figcaption { margin-top: 36px; }

/* ---------- PROMISE ---------- */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.note-card {
  background: var(--card); padding: 26px 22px; border-radius: 6px;
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.note-card::before { /* washi tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--pink) 70%, transparent);
}
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.note-card .emoji { font-size: 1.8rem; }
.note-card h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.note-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- GALLERY ---------- */
.gallery { max-width: none; padding-left: 0; padding-right: 0; }
.strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 16px max(16px, calc((100% - var(--max)) / 2)) 28px;
  scrollbar-width: thin;
}
.strip img {
  flex: 0 0 auto; width: 240px; border-radius: 20px; scroll-snap-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ---------- SUGGEST ---------- */
.suggest-card {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  background: var(--rose); border: 2px solid var(--ink); border-radius: 28px;
  padding: 40px 48px; box-shadow: 8px 8px 0 var(--ink); position: relative;
}
.suggest-card .tag { background: #fff; }
.suggest-card .hl { background: linear-gradient(transparent 55%, rgba(255,255,255,.85) 55%, rgba(255,255,255,.85) 90%, transparent 90%); }
.suggest-card p { margin: 0 0 22px; }
.mascot {
  width: 160px; height: 160px; border-radius: 36px;
  border: 4px solid #fff; box-shadow: var(--shadow);
  transform: rotate(-5deg); animation: bob 5s ease-in-out infinite;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-pink, .btn-ghost {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-pink { background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-pink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .5); }

/* ---------- SUPPORT PAGE ---------- */
.page-head { text-align: center; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 8px; }
.page-head p { color: var(--ink-soft); margin: 0; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; }
.help-grid .note-card { display: flex; flex-direction: column; }
.help-grid .note-card p { flex: 1; margin-bottom: 18px; }
.help-grid .btn-pink { align-self: flex-start; background: var(--pink-soft); }
.faq { max-width: 760px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-family: var(--hand); font-weight: 700; font-size: 1.15rem; }
.faq details p { color: var(--ink-soft); margin: 10px 0 0; }
.faq a { color: var(--blue); }

/* ---------- FINAL ---------- */
.final { text-align: center; padding-bottom: 96px; }
.final img { margin: 0 auto 16px; border-radius: 28px; border: 3px solid #fff; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 4px; }
.final p { color: var(--ink-soft); margin: 0 0 28px; }

/* ---------- FOOTER ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 28px max(16px, calc((100% - var(--max)) / 2));
  border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--ink-soft);
}
.f-brand { display: flex; align-items: center; gap: 8px; font-family: var(--hand); font-weight: 700; color: var(--ink); }
.f-brand img { border-radius: 7px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin: 0; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; }
  .doodle { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .stats { justify-content: center; }
  .hero-art { height: 480px; }
  .shot { width: 220px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .f-text { order: 0; }
  .promise { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .suggest-card { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; }
  .mascot { margin: 0 auto; width: 130px; height: 130px; }
  .btn-row { justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 48px 16px; }
  .hero-art { height: 400px; }
  .shot { width: 180px; }
  .f-art img { width: 240px; }
  .f-art.pair img { width: 46%; }
  .videos { gap: 12px; }
  .videos video { width: 104px; border-radius: 16px; box-shadow: 4px 4px 0 var(--pink); }
  .promise { grid-template-columns: 1fr; }
  .strip img { width: 200px; }
  .footer { flex-direction: column; text-align: center; }
}
