/* pptt — Soft UI: ivory / charcoal surfaces, cobalt accent. Mirrors AppTheme in the app. */
:root {
  --canvas: #FAF6F2;
  --surface: #F2EFEA;
  --field: #ECE8E2;
  --ink: #2A2C30;
  --ink-soft: rgba(42, 44, 48, .72);
  --ink-faint: rgba(42, 44, 48, .5);
  --line: rgba(42, 44, 48, .09);
  --tint: #0071EA;
  --tint-text: #0060D0;
  --orange: #F26A1B;
  --rim: rgba(255, 255, 255, .95);
  --glow: rgba(255, 255, 255, .6);
  --edge: rgba(190, 180, 165, .4);
  --edge-soft: rgba(190, 180, 165, .22);
  --drop-near: rgba(120, 105, 85, .10);
  --drop-far: rgba(120, 105, 85, .14);
  --raised:
    inset 1.5px 1.5px .5px var(--rim),
    inset 3px 3px 6px var(--glow),
    inset -1.5px -2px 2px var(--edge),
    inset -3px -4px 8px var(--edge-soft),
    0 2px 4px var(--drop-near),
    0 10px 24px var(--drop-far);
  --pressed:
    inset 1.5px 2px 4px var(--edge),
    inset -1.5px -1.5px 4px var(--rim);
  --cjk: "Noto Sans TC", "PingFang TC", "Heiti TC", system-ui, sans-serif;
  --round: "Lilita One", "Arial Rounded MT Bold", var(--cjk);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #2A2C30; --surface: #34363C; --field: #25272B;
    --ink: #F2EFEA; --ink-soft: rgba(242, 239, 234, .74); --ink-faint: rgba(242, 239, 234, .5);
    --line: rgba(242, 239, 234, .1); --tint: #2F8BFF; --tint-text: #6AAEFB; --orange: #FF7A2E;
    --rim: rgba(255, 255, 255, .12); --glow: rgba(255, 255, 255, .06);
    --edge: rgba(0, 0, 0, .5); --edge-soft: rgba(0, 0, 0, .3);
    --drop-near: rgba(0, 0, 0, .35); --drop-far: rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #2A2C30; --surface: #34363C; --field: #25272B;
  --ink: #F2EFEA; --ink-soft: rgba(242, 239, 234, .74); --ink-faint: rgba(242, 239, 234, .5);
  --line: rgba(242, 239, 234, .1); --tint: #2F8BFF; --tint-text: #6AAEFB; --orange: #FF7A2E;
  --rim: rgba(255, 255, 255, .12); --glow: rgba(255, 255, 255, .06);
  --edge: rgba(0, 0, 0, .5); --edge-soft: rgba(0, 0, 0, .3);
  --drop-near: rgba(0, 0, 0, .35); --drop-far: rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--cjk); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--tint-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 400 26px/1 var(--round); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px var(--drop-far); }
.brand .cursor { color: var(--tint); margin-left: -.04em; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: var(--pressed); text-decoration: none; }

/* Soft surfaces */
.panel { background: var(--surface); border-radius: 28px; box-shadow: var(--raised); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1; }
.pill.primary { color: #fff; background: var(--tint); box-shadow: inset 1px 1.5px 1px rgba(255,255,255,.35), inset -1px -2px 3px rgba(0,0,0,.18), 0 6px 16px color-mix(in srgb, var(--tint) 35%, transparent); }
.pill.ghost { color: var(--ink); background: var(--surface); box-shadow: var(--raised); }
.pill:hover { text-decoration: none; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--raised); margin-bottom: 26px; }
.eyebrow { color: var(--tint-text); font-weight: 700; font-size: 14px; letter-spacing: .12em; margin: 0 0 10px; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.18; margin: 0 0 18px; font-weight: 900; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--tint-text); }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 30px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

/* Phone mockups */
.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 270px; height: 560px; border-radius: 44px; padding: 10px;
  background: #1C1D20; box-shadow: 0 30px 60px rgba(0,0,0,.22), 0 8px 18px rgba(0,0,0,.18), inset 0 0 0 2px #3A3C42;
}
.phone .screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; font-size: 11px; line-height: 1.55; }
.phone.light .screen { --s-canvas:#FAF6F2; --s-surface:#F2EFEA; --s-ink:#2A2C30; --s-soft:rgba(42,44,48,.62); --s-line:rgba(42,44,48,.08); --s-tint:#0060D0; --s-fill:#0071EA; --s-rim:rgba(255,255,255,.95); --s-edge:rgba(190,180,165,.45); --s-drop:rgba(120,105,85,.16); }
.phone.dark .screen { --s-canvas:#2A2C30; --s-surface:#34363C; --s-ink:#F2EFEA; --s-soft:rgba(242,239,234,.66); --s-line:rgba(242,239,234,.09); --s-tint:#FF9A5C; --s-fill:#FF7A2E; --s-rim:rgba(255,255,255,.12); --s-edge:rgba(0,0,0,.5); --s-drop:rgba(0,0,0,.4); }
.screen { background: var(--s-canvas); color: var(--s-ink); }
.phone.front { right: 150px; top: 0; z-index: 2; }
.phone.back { right: 0; top: 40px; transform: rotate(4deg); }
.island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 82px; height: 22px; border-radius: 12px; background: #000; z-index: 3; }
.status { display: flex; justify-content: space-between; padding: 10px 22px 0; font-weight: 700; font-size: 11px; }
.navbar { text-align: center; font-weight: 700; font-size: 12.5px; padding: 12px 0 6px; }
.post { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--s-line); }
.ava { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: var(--s-tint); background: var(--s-surface); box-shadow: inset 1px 1px .5px var(--s-rim), inset -1px -1.5px 1px var(--s-edge), 0 2px 5px var(--s-drop); }
.meta { display: flex; gap: 4px; align-items: baseline; }
.meta b { font-size: 11.5px; }
.meta .board { color: var(--s-tint); }
.meta time { margin-left: auto; color: var(--s-soft); font-size: 9.5px; }
.post h4 { margin: 1px 0 2px; font-size: 11.5px; line-height: 1.45; }
.post p { margin: 0; color: var(--s-soft); }
.post .more { color: var(--s-tint); font-weight: 700; font-size: 9.5px; }
.post .img { margin-top: 6px; height: 92px; border-radius: 0; background: linear-gradient(135deg, #9EC5F8, #F6C9A6 55%, #F3E2B8); }
.article { padding: 6px 16px; }
.article h3 { font-size: 14px; line-height: 1.45; margin: 4px 0 6px; }
.article .by { color: var(--s-soft); font-size: 10px; margin-bottom: 10px; }
.article p { margin: 0 0 10px; line-height: 1.8; }
.push { display: grid; grid-template-columns: 14px 1fr; gap: 6px; padding: 6px 0; border-top: 1px solid var(--s-line); font-size: 10.5px; }
.push i { font-style: normal; font-weight: 800; color: var(--s-fill); }
.push b { margin-right: 4px; }
.push small { display: block; text-align: right; color: var(--s-soft); font-size: 8.5px; }
.tabbar { position: absolute; left: 10px; right: 10px; bottom: 14px; height: 46px; border-radius: 23px; display: flex; justify-content: space-around; align-items: center; background: var(--s-surface); box-shadow: inset 1px 1px .5px var(--s-rim), inset -1px -1.5px 2px var(--s-edge), 0 6px 14px var(--s-drop); font-size: 8.5px; color: var(--s-soft); }
.tabbar span { display: grid; justify-items: center; gap: 1px; }
.tabbar span::before { content: ""; width: 15px; height: 15px; border-radius: 5px; background: currentColor; opacity: .55; }
.tabbar .on { color: var(--s-fill); font-weight: 700; }
.tabbar .on::before { opacity: 1; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.3; margin: 0 0 10px; font-weight: 900; }
.sub { color: var(--ink-soft); margin: 0 0 34px; max-width: 34em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px 26px 24px; }
.feature .glyph { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--raised); margin-bottom: 16px; color: var(--tint); }
.feature .glyph svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }

.promise { padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.promise .lock { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--raised); color: var(--tint); }
.promise ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.promise li { margin: 4px 0; }

.faq details { padding: 18px 24px; margin-bottom: 14px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tint-text); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.contact { text-align: center; padding: 44px 24px; }
.contact .mail { font-size: 20px; font-weight: 700; }

footer { padding: 40px 0 56px; color: var(--ink-faint); font-size: 14px; line-height: 1.7; }
footer .wrap { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-soft); }

/* Legal pages */
.doc { padding: 40px 0 20px; }
.doc .paper { max-width: 760px; margin-inline: auto; padding: 44px 48px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 6px; }
.doc .date { color: var(--ink-faint); font-size: 14px; margin: 0 0 26px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc .summary { background: var(--canvas); border-radius: 20px; box-shadow: var(--pressed); padding: 18px 22px; margin: 0 0 8px; }
.doc .summary ul { margin: 0; }
.doc .lang { display: flex; gap: 8px; margin: 0 0 22px; }
.doc .lang a { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--canvas); box-shadow: var(--raised); color: var(--ink-soft); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 8px; }
.todo { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--ink); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; width: 100%; max-width: 440px; margin-inline: auto; }
  .phone.front { right: auto; left: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .phones { height: 500px; }
  .phone { width: 230px; height: 480px; border-radius: 38px; }
  .phone .screen { border-radius: 30px; font-size: 10px; }
  .phone.back { right: 0; top: 30px; }
  .grid { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; padding: 28px 22px; }
  .doc .paper { padding: 30px 20px; border-radius: 22px; }
  section { padding: 40px 0; }
}
@media (max-width: 380px) {
  .phone.back { display: none; }
  .phone.front { left: 50%; transform: translateX(-50%); }
}
