/* pon.chat — PonChat's website. Colours are the app's default theme
   (warm coral, tool/generate_design_tokens.py): page, cards, text, accent;
   the dark variant follows the system like the app. */
:root {
  --page: #f7f3f1;
  --card: #ffffff;
  --ink: #2b2220;
  --muted: #6f625d;
  --line: #ede3df;
  --field: #f4edea;
  --accent: #c8402a;
  --accent-fill: #c8402a;
  --on-accent: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #141110;
    --card: #1c1716;
    --ink: #f3ece9;
    --muted: #a8988f;
    --line: #2e2624;
    --field: #282120;
    --accent: #ff8b73;
    --accent-fill: #cc4a31;
    --on-accent: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue",
    Arial, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 520px;
}

.center {
  text-align: center;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-weight: 600;
}

.top a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.top img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 8px 28px rgba(200, 64, 42, 0.18);
}

.hero {
  text-align: center;
  padding: 56px 0 36px;
}

h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 32px 0 8px;
}

.lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 20px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding-bottom: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.button {
  display: inline-block;
  background: var(--accent-fill);
  color: var(--on-accent);
  border: 0;
  border-radius: 14px;
  padding: 13px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.link-box {
  margin: 20px 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--field);
  word-break: break-all;
  font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  user-select: all;
  -webkit-user-select: all;
}

.steps {
  text-align: left;
  margin: 24px auto 8px;
  padding-left: 1.4em;
}

.steps li {
  margin: 6px 0;
}

.muted {
  color: var(--muted);
  font-size: 15px;
}

.note {
  background: var(--field);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 15px;
}

.legal {
  padding-bottom: 24px;
}

.legal h1 {
  margin-top: 8px;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li {
  margin: 6px 0;
}

footer {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 36px 20px 48px;
}

footer nav a {
  margin: 0 6px;
}
