:root {
  --ink: #3a2a14;
  --ink-soft: #6b5a44;
  --cocoa: #6b4a1e;
  --sun: #ffc93c;
  --sun-deep: #e5a000;
  --page: #ffffff;
  --card: #f5f5f5;
  --card-inner: #ffffff;
  --line: #e5e5e5;
  --radius: 22px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ece2;
    --ink-soft: #c9bfb2;
    --cocoa: #f2c86b;
    --page: #000000;
    --card: #1c1c1c;
    --card-inner: #2c2c2c;
    --line: #2c2c2c;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { color: var(--sun-deep); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--ink-soft); }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

/* buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #1a1a1a; color: #fff; text-decoration: none; line-height: 1.15;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store small { display: block; font-size: 11px; opacity: .8; }
.store span { font-size: 17px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .store { background: #ededed; color: #111; } .store svg { fill: #111; } }

/* hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--cocoa); background: color-mix(in srgb, var(--sun) 28%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.18; margin: 0 0 18px; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--sun-deep); }
.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.facts div { line-height: 1.25; }
.facts strong { display: block; font-size: 26px; }
.facts span { font-size: 14px; color: var(--ink-soft); }
.stage { position: relative; }
.stage .scene { border-radius: 28px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stage .phone { position: absolute; right: 6%; bottom: -36px; width: 40%; }
.stage .cat { position: absolute; left: 6%; bottom: -26px; width: 30%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.12)); animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .stage .cat { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .stage { max-width: 560px; }
}

/* phone frame */
.phone { border-radius: 34px; padding: 9px; background: #1a1a1a; box-shadow: 0 24px 48px rgba(0,0,0,.18); }
.phone img { border-radius: 26px; width: 100%; background: #fff; }

/* sections */
section { padding: 72px 0; }
.kicker { font-size: 14px; font-weight: 700; color: var(--sun-deep); letter-spacing: .04em; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; margin: 0 0 14px; }
.intro { color: var(--ink-soft); max-width: 40em; margin: 0 0 36px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

/* languages */
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.langs div { background: var(--card); border-radius: var(--radius); padding: 18px 18px 16px; }
.langs .flag { font-size: 28px; line-height: 1; }
.langs h3 { margin: 10px 0 2px; font-size: 19px; }
.langs p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.langs b { display: block; margin-top: 8px; font-size: 15px; color: var(--cocoa); }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.feature .shot { justify-self: center; width: min(300px, 78vw); }
.feature.flip .shot { order: -1; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; line-height: 1.3; }
.feature p { color: var(--ink-soft); margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 9px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233a2a14' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .shot { order: 0; }
}

/* memory cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* cafe */
.cafe > * { min-width: 0; }
.cafe { background: var(--card); border-radius: 32px; padding: 44px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.friends div { min-width: 0; background: var(--card-inner); border-radius: 18px; padding: 12px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; }
.friends img { width: 100%; height: 100%; object-fit: contain; }
.outfits { display: flex; gap: 8px; margin-top: 22px; }
.outfits img { width: 25%; background: var(--card-inner); border-radius: 16px; padding: 8px; }
@media (max-width: 860px) { .cafe { grid-template-columns: 1fr; padding: 28px 20px; } }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 0 auto; text-align: left; }
.plan { background: var(--card); border-radius: var(--radius); padding: 28px; }
.plan.pro { background: color-mix(in srgb, var(--sun) 22%, var(--card)); }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .sub { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.note { color: var(--ink-soft); font-size: 14px; margin-top: 18px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 18px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--ink-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* cta */
.cta { text-align: center; }
.cta img { width: 150px; margin: 0 auto 8px; }
.cta .stores { justify-content: center; }
.cta .intro { margin-left: auto; margin-right: auto; }

/* footer */
footer { padding: 36px 0 48px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .copy { margin-left: auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
