/* ckin — shared site styles. Layout conventions follow odimeet.app / foldic.app. */
:root {
  --accent: #D9480F;        /* 辣椒紅 */
  --accent-deep: #B23A0B;
  --accent-tint: #FDEBDD;
  --ink: #2B1D14;
  --muted: #7A6556;
  --bg: #FFF9F3;
  --card: #FBEFE4;
  --border: rgba(178, 58, 11, 0.16);
  --shadow: 0 24px 80px rgba(43, 29, 20, 0.18);
  --done: #15803d; --todo: #dc2626; --visited: #9caf88; --closing: #d97706;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF7A3D;
    --accent-deep: #FF9A66;
    --accent-tint: #3A2116;
    --ink: #F3EAE2;
    --muted: #B9A595;
    --bg: #17110D;
    --card: #221913;
    --border: rgba(255, 122, 61, 0.22);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang TC", "SF Pro TC", -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.75; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; line-height: 1.65; letter-spacing: 0; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 0.9rem 1.5rem;
  backdrop-filter: saturate(180%) blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent);
}
nav .brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
nav .links { display: flex; align-items: center; flex-wrap: wrap; }
nav .links a { color: var(--muted); text-decoration: none; margin-left: 1.4rem; font-size: 0.92rem; }
nav .links a:hover { color: var(--accent-deep); }
nav .lang { margin-left: 1.4rem; font-size: 0.9rem; color: var(--muted); }
nav .lang a { margin: 0 0.15rem; }
nav .lang a.active { color: var(--ink); font-weight: 700; }
/* Mobile: brand on top, links in one horizontally scrollable row (keeps the sticky nav short). */
@media (max-width: 720px) {
  nav { flex-direction: column; align-items: stretch; gap: 0.3rem; padding: 0.55rem 1rem 0.45rem; }
  nav .brand { justify-content: center; }
  nav .links { flex-wrap: nowrap; overflow-x: auto; gap: 1.1rem; justify-content: flex-start; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 88%, transparent); padding-bottom: 2px; }
  nav .links::-webkit-scrollbar { display: none; }
  nav .links a, nav .lang { margin-left: 0; font-size: 0.86rem; white-space: nowrap; flex: 0 0 auto; }
  @media (min-width: 420px) { nav .links { justify-content: center; mask-image: none; } }
}

.hero { max-width: 1080px; margin: 0 auto; padding: 4.2rem 1.5rem 0; text-align: center; }
.hero .app-icon { width: 108px; height: 108px; border-radius: 24px; box-shadow: 0 12px 36px rgba(43, 29, 20, 0.25); margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.22; font-weight: 900; max-width: 860px; margin: 0 auto; text-wrap: balance; }
html[lang="en"] .hero h1 { font-family: "New York", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em {
  font-style: normal; padding: 0 0.06em;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 45%, transparent) 58%, color-mix(in srgb, var(--accent) 45%, transparent) 94%, transparent 94%);
}
.hero p.sub { color: var(--muted); font-size: 1.14rem; max-width: 640px; margin: 1.2rem auto 0; }
.hero-cta { margin-top: 1.8rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.2rem;
  font-size: 0.88rem; font-weight: 600; color: var(--accent-deep);
  background: var(--accent-tint); border: 1px solid var(--border); padding: 0.45rem 1rem; border-radius: 999px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero .caption { color: var(--muted); font-size: 0.86rem; margin-top: 0.8rem; }

/* Live hero: a phone showing the snack map */
.phone {
  position: relative; margin: 3rem auto 0; width: min(280px, 70vw); aspect-ratio: 9 / 19.2;
  border-radius: 44px; background: #1c1e22; padding: 12px;
  box-shadow: 0 30px 60px rgba(43, 29, 20, 0.32), inset 0 0 0 2px #2a2d33;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #EEF1E8; }
.phone .island { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); width: 34%; height: 5.5%; border-radius: 999px; background: #1c1e22; }
.phone .map { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px) 0 0 / 22px 22px, #EEF1E8; }
.phone .road { position: absolute; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.phone .r1 { left: -5%; right: -5%; top: 38%; height: 9px; transform: rotate(-8deg); }
.phone .r2 { top: -5%; bottom: -5%; left: 52%; width: 9px; transform: rotate(6deg); }
.phone .r3 { left: -5%; right: -5%; top: 70%; height: 7px; transform: rotate(4deg); }
.phone .river { position: absolute; left: -10%; right: -10%; top: 82%; height: 26px; background: #BFD9EA; transform: rotate(-6deg); }
/* Map pins: round head + tail, glyph stays upright */
.pin {
  --c: var(--todo); position: absolute; width: 24px; height: 24px; margin: -31px 0 0 -12px;
  border-radius: 50%; background: var(--c); border: 2px solid rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -9px; translate: -50% 0; border: 6px solid transparent; border-top: 8px solid var(--c); }
.pin.done { --c: var(--done); width: 28px; height: 28px; margin: -35px 0 0 -14px; }
.pin.visited { --c: var(--visited); width: 28px; height: 28px; margin: -35px 0 0 -14px; animation: bob 2.2s ease-in-out infinite; }
.pin.closing { --c: var(--closing); font-size: 11px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .pin.visited, .badge::before { animation: none; } }
.phone .mapchip {
  position: absolute; z-index: 2; top: 11%; left: 7%; right: 7%; background: #fff; color: #222;
  border-radius: 12px; padding: 0.45em 0.7em; font-size: clamp(0.58rem, 2.4vw, 0.72rem); text-align: left;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.phone .sheet {
  position: absolute; z-index: 2; left: 5%; right: 5%; bottom: 4%; background: #fff; color: #222;
  border-radius: 18px; padding: 0.9em 1em; text-align: left; display: flex; flex-direction: column; gap: 0.15em;
  font-size: clamp(0.62rem, 2.6vw, 0.8rem); box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
.phone .sheet b { font-size: 1.15em; }
.phone .sheet span { color: #555; }
.phone .sheet .go { margin-top: 0.4em; align-self: flex-start; background: var(--todo); color: #fff; border-radius: 8px; padding: 0.3em 0.8em; font-weight: 700; }

section.stance { max-width: 820px; margin: 0 auto; padding: 3.6rem 1.5rem 0.4rem; text-align: center; }
.stance p { font-size: clamp(1.15rem, 3.2vw, 1.6rem); line-height: 1.5; font-weight: 700; margin: 0.55rem 0; }
.stance p em { font-style: normal; color: var(--accent-deep); }
.stance p.last { font-weight: 900; margin-top: 1rem; }

section.story { max-width: 720px; margin: 0 auto; padding: 4.6rem 1.5rem 0.4rem; }
.story p { font-size: 1.06rem; margin: 0 0 1rem; }
.story p em { font-style: normal; font-weight: 700; color: var(--accent-deep); }
.story p.sign { font-weight: 900; font-size: 1.15rem; text-align: center; margin-top: 1.6rem; }
h2.section-title { font-size: 1.9rem; font-weight: 900; margin-bottom: 1.6rem; text-align: center; text-wrap: balance; }
html[lang="en"] h2.section-title { font-family: "New York", Georgia, serif; font-weight: 700; letter-spacing: -0.02em; }
section.features { max-width: 1080px; margin: 0 auto; padding: 4.6rem 1.5rem 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; }
.feature .icon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--accent-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.04rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.94rem; color: var(--muted); }

section.how { max-width: 880px; margin: 0 auto; padding: 4.2rem 1.5rem 1rem; text-align: center; }
p.section-sub { color: var(--muted); max-width: 560px; margin: -0.8rem auto 2.4rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem; text-align: left; }
.step .num { font-size: 0.8rem; font-weight: 700; color: var(--accent-deep); background: var(--accent-tint); border-radius: 999px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.7rem; }
.step h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.92rem; color: var(--muted); }
.post-sample {
  max-width: 420px; margin: 2.6rem auto 0; text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1rem 1.2rem; font-size: 0.95rem;
}
.post-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.post-head .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--closing)); }
.post-sample .tag { color: #1d64d8; }
.post-sample .link { color: #1d64d8; word-break: break-all; font-size: 0.85rem; }

section.cities { max-width: 880px; margin: 0 auto; padding: 4.2rem 1.5rem 1rem; text-align: center; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.city { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem 1rem; transition: transform .15s, border-color .15s; }
.city:hover { transform: translateY(-3px); border-color: var(--accent); }
.city b { font-size: 1.4rem; font-weight: 900; }
.city span { color: var(--muted); font-size: 0.9rem; }
.plans-note { color: var(--muted); font-size: 0.9rem; max-width: 620px; margin: 1.4rem auto 0; }

section.privacy { max-width: 780px; margin: 4.2rem auto 0; padding: 0 1.5rem; }
.privacy-card { background: var(--accent-tint); border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem; text-align: center; }
.privacy-card h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.7rem; }
.privacy-card p { color: var(--muted); font-size: 0.98rem; max-width: 640px; margin: 0 auto; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.6rem; text-align: left; }
.pillar { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; font-size: 0.9rem; }
.pillar b { display: block; margin-bottom: 0.25rem; }
.pillar span { color: var(--muted); }

section.faq { max-width: 720px; margin: 0 auto; padding: 4.2rem 1.5rem 2rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0.2rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-deep); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.95rem; padding-top: 0.6rem; }
.faq details p a, .prose a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.bottom-cta { text-align: center; padding: 4.5rem 1.5rem; background: linear-gradient(180deg, transparent, var(--accent-tint)); }
.bottom-cta h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 1.4rem; }
.cta {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent-deep); color: #fff; border-radius: 12px;
  padding: 0.9rem 1.6rem; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 6px 20px rgba(178, 58, 11, 0.3);
}
.cta:hover { background: var(--accent); }
@media (prefers-color-scheme: dark) { .cta { color: #17110D; } }

footer { border-top: 1px solid var(--border); padding: 2.2rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.88rem; }
footer a, nav .lang a { color: var(--accent-deep); text-decoration: none; margin: 0 0.2rem; }
nav .lang a { color: var(--muted); }

/* Privacy / long-form pages */
.prose { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.prose h1 { font-size: 2rem; font-weight: 900; margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink); font-size: 0.98rem; margin: 0.5rem 0; }
.prose ul { padding-left: 1.3rem; }
