/* Marketing site — static, no JS required. Matches the app's palette. */
:root {
  --bg: #fcf9f1;
  --ink: #1c1c17;
  --muted: #5c5a4e;
  --brand: #00694c;
  --brand-bright: #1d9e75;
  --brand-soft: #e3f2ec;
  --card: #ffffff;
  --card-warm: #f6f4eb;
  --line: #e5e2da;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", "Noto Sans TC", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 1.4rem; }

/* ── Header ─────────────────────────────────────────────────────────── */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 0; gap: 1rem; flex-wrap: wrap;
}
header.site .logo {
  font-weight: 800; font-size: 1.25rem; color: var(--brand);
  text-decoration: none; letter-spacing: -0.02em;
}
header.site .logo::before {
  content: ""; display: inline-block; width: .55em; height: .55em;
  border-radius: 50%; background: var(--brand-bright); margin-right: .45em;
}
header.site nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; }
header.site nav > a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
  font-weight: 600; padding: .45rem .8rem; border-radius: .6rem;
}
header.site nav > a:hover { color: var(--ink); background: var(--card-warm); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 3.5rem 0 3rem;
  display: grid; gap: 2.5rem; align-items: center;
}
.hero.with-shot { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
@media (max-width: 760px) {
  .hero.with-shot { grid-template-columns: 1fr; }
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -6rem; right: -14rem; width: 30rem; height: 30rem; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 68%);
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.14;
  letter-spacing: -0.03em; font-weight: 800; max-width: 22ch;
}
.hero h1 em { font-style: normal; color: var(--brand-bright); }
.hero p.lede {
  margin-top: 1.2rem; font-size: 1.13rem; color: var(--muted); max-width: 52ch;
}
.cta { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 1rem;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--brand); color: #f5fff7;
  box-shadow: 0 10px 24px rgba(0, 105, 76, .28);
}
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.badges { margin-top: 1.3rem; font-size: .86rem; color: var(--muted); }

/* Phone-framed screenshot */
.phone {
  justify-self: center;
  border: 10px solid var(--ink); border-radius: 2.4rem;
  overflow: hidden; background: var(--ink);
  box-shadow: 0 30px 60px rgba(28, 28, 23, .22);
  max-width: 290px; width: 100%;
  transform: rotate(2deg);
}
.phone img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .phone { max-width: 250px; transform: none; } }
figure.shot { justify-self: center; margin: 0; }
.map-credit {
  margin-top: 1.1rem; text-align: center;
  font-size: .72rem; color: var(--muted);
}
.map-credit a { color: var(--muted); }

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 2.6rem 0; }
section h2 {
  font-size: 1.65rem; margin-bottom: 1.3rem; letter-spacing: -0.02em;
  font-weight: 800;
}
section h2::after {
  content: ""; display: block; width: 2.6rem; height: .28rem;
  border-radius: .2rem; background: var(--brand-bright); margin-top: .5rem;
}
section h3 { font-size: 1.08rem; margin: 1.3rem 0 .4rem; font-weight: 700; }

/* Full-bleed warm band for alternating sections */
.band {
  background: var(--card-warm);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* Feature cards */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1.1rem; padding: 1.5rem 1.5rem 1.4rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28, 28, 23, .07); }
.card .ico {
  width: 2.5rem; height: 2.5rem; border-radius: .8rem;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem; font-size: 1.15rem;
}
.card h3 { margin: 0 0 .4rem; }
.card p { font-size: .94rem; color: var(--muted); }

/* Numbered steps */
ol.steps { list-style: none; padding: 0; display: grid; gap: 1rem; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 1.1rem 1.3rem 1.1rem 4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
}
ol.steps { counter-reset: step; }
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #f5fff7; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}

ul { padding-left: 1.3rem; }
li { margin: .4rem 0; }
p + p { margin-top: .7rem; }
code, pre {
  font-family: ui-monospace, Consolas, monospace; font-size: .88em;
  background: var(--card-warm); border: 1px solid var(--line); border-radius: .55rem;
}
code { padding: .12rem .45rem; border: none; }
pre { padding: .95rem 1.2rem; overflow-x: auto; margin: .7rem 0; }
a { color: var(--brand); }

.note {
  border-left: 3px solid var(--brand-bright); background: var(--card-warm);
  padding: .85rem 1.05rem; border-radius: 0 .6rem .6rem 0;
  font-size: .93rem; margin: 1rem 0;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--line); margin-top: 3.2rem; padding: 1.8rem 0 2.6rem;
  font-size: .89rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
footer.site a { color: var(--muted); margin-right: 1.05rem; text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }

/* ── Language dropdown — native <details>, works with JS disabled ───── */
details.lang { position: relative; }
details.lang summary {
  list-style: none; cursor: pointer; color: var(--muted); font-weight: 600;
  font-size: .92rem; user-select: none;
  padding: .45rem .9rem; border: 1px solid var(--line);
  border-radius: 2rem; background: var(--card);
}
details.lang summary::-webkit-details-marker { display: none; }
details.lang summary::after {
  content: ""; display: inline-block; margin-left: .45em;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}
details.lang[open] summary { color: var(--ink); border-color: var(--brand-bright); }
details.lang .menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--card); border: 1px solid var(--line);
  border-radius: .8rem; padding: .35rem; min-width: 9rem;
  box-shadow: 0 14px 34px rgba(28, 28, 23, .14); z-index: 10;
}
details.lang .menu a {
  display: block; padding: .5rem .85rem; border-radius: .5rem;
  color: var(--ink); text-decoration: none; font-size: .93rem;
  margin: 0; white-space: nowrap;
}
details.lang .menu a:hover { background: var(--card-warm); }
details.lang .menu a.current { font-weight: 800; color: var(--brand); }

/* ── Dark mode ──────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c17; --ink: #e5e2da; --muted: #b8b5aa;
    --brand: #68dbae; --brand-bright: #68dbae;
    --brand-soft: rgba(104, 219, 174, .12);
    --card: #252520; --card-warm: #21211c; --line: rgba(255, 255, 255, .1);
  }
  .btn.primary { background: #00694c; color: #f5fff7; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
  ol.steps li::before { background: #00694c; }
  .phone { border-color: #3e3e38; background: #3e3e38; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
}

/* Download buttons: a release link should be clickable, not a URL to select
   by hand. .btn.dl is a compact secondary button; .dl-row lines them up. */
.dl-row { display: flex; gap: .7rem; flex-wrap: wrap; margin: .9rem 0; }
.btn.dl {
  padding: .65rem 1.2rem; font-size: .93rem; border-radius: .8rem;
  background: var(--brand); color: #f5fff7; box-shadow: 0 6px 16px rgba(0, 105, 76, .22);
}
.btn.dl.alt { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.arch { font-size: .8rem; color: var(--muted); margin-top: -.3rem; }
@media (prefers-color-scheme: dark) {
  .btn.dl { background: #00694c; }
}
