/* Shared by every page of the iTing site: colors, top bar, footer, document pages. */
:root {
  color-scheme: light dark;
  --accent: #FA2D48;
  --accent-text: #E0213A;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --bar: rgba(255, 255, 255, .78);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC", "Helvetica Neue", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #FF6B7D;
    --bg: #0b0708;
    --bg-soft: #1a1213;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: rgba(255, 255, 255, .12);
    --bar: rgba(16, 10, 11, .72);
  }
}
:root[data-theme="dark"] {
  --accent-text: #FF6B7D;
  --bg: #0b0708;
  --bg-soft: #1a1213;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --line: rgba(255, 255, 255, .12);
  --bar: rgba(16, 10, 11, .72);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.6; margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Top bar */
.topbar {
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  align-items: center; display: flex; gap: 1rem;
  margin: 0 auto; max-width: 68rem; padding: .7rem 1.25rem;
}
.brand { align-items: center; color: var(--text); display: flex; font-weight: 700; gap: .55rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 22.5%; height: 1.9rem; width: 1.9rem; }
.topbar nav { display: flex; font-size: .92rem; gap: 1.1rem; margin-left: auto; }
.topbar nav a { color: var(--text-2); }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 34rem) { .topbar nav .optional { display: none; } }

/* Buttons */
.button {
  align-items: center; background: var(--accent); border-radius: 999px; color: #fff;
  display: inline-flex; font-weight: 600; gap: .5rem; padding: .8rem 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { box-shadow: 0 8px 28px rgba(250, 45, 72, .35); text-decoration: none; transform: translateY(-1px); }
.button svg { height: 1.15em; width: 1.15em; }

.pro {
  background: var(--accent); border-radius: 999px; color: #fff; display: inline-block;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; line-height: 1;
  padding: .3rem .5rem; vertical-align: .15em;
}

/* Footer */
.footer { border-top: 1px solid var(--line); color: var(--text-2); font-size: .85rem; }
.footer-inner { margin: 0 auto; max-width: 68rem; padding: 2rem 1.25rem 3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: .8rem; }
.footer-links a { color: var(--text-2); }

/* Document pages (support, privacy, sample) */
.doc { margin: 0 auto; max-width: 46rem; padding: 2.5rem 1.25rem 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4rem; }
.doc h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.doc .tagline, .doc .updated { color: var(--text-2); margin-top: 0; }
.doc .lead { font-size: 1.1rem; }
.doc ul li { margin: .45rem 0; }
.doc .contact { background: var(--bg-soft); border-radius: 1rem; padding: 1rem 1.2rem; }
.doc details { border-top: 1px solid var(--line); padding: .9rem 0; }
.doc details summary { cursor: pointer; font-weight: 600; }
.doc details p, .doc details ul { color: var(--text-2); margin: .5rem 0 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 4rem 0 0; }
.doc .lang { float: right; font-size: .95rem; }
