/* ShotZen web pages — support and privacy.
 *
 * The palette is lifted from Theme/ZenTheme.swift so the pages and the app are
 * the same object seen twice. Serif headings, a 44x2 gold rule under them, and
 * frosted panels on a violet-night ground: the family vocabulary. What is not
 * carried over is BreathZen's motion — nobody dwells on a support page, and a
 * static drifting mote reads as dust on the display.
 */

:root {
  --night: #0d081b;
  --black: #140d26;
  --ink: #22173b;
  --text: #f6f2ed;
  --subtext: rgba(246, 242, 237, 0.66);
  --faint: rgba(246, 242, 237, 0.34);
  --hairline: rgba(246, 242, 237, 0.12);
  --gold: #f5bf54;
  --violet: #a88bf5;
  --moon: #f2eef7;
  --shade: #4f3578;

  --serif: ui-serif, Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC",
           "Hiragino Mincho ProN", "PingFang SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 24px 96px;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--ink) 0%, transparent 60%),
    var(--night);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; }

/* Masthead ---------------------------------------------------------------- */

header { padding: 72px 0 0; text-align: center; }

.mark { width: 72px; height: 72px; display: block; margin: 0 auto 24px; }

h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

.tagline { color: var(--subtext); margin: 8px 0 0; font-size: 15px; }

/* The family's heading rule: 44 wide, 2 tall, gold. */
.rule {
  width: 44px;
  height: 2px;
  border: 0;
  margin: 28px auto 0;
  background: var(--gold);
  border-radius: 1px;
}

/* Language bar ------------------------------------------------------------ */

.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 56px;
}

.langs button {
  font: inherit;
  font-size: 13px;
  color: var(--subtext);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}

.langs button:hover { color: var(--text); border-color: rgba(246, 242, 237, 0.28); }

.langs button[aria-pressed="true"] {
  color: var(--night);
  background: var(--gold);
  border-color: var(--gold);
}

/* Body -------------------------------------------------------------------- */

article { display: none; }
article.on { display: block; }

h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 56px 0 0;
}

h2 + .rule { margin: 14px 0 26px; }

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

p { margin: 0 0 16px; color: var(--subtext); }
p.lead { color: var(--text); font-size: 17px; }

a { color: var(--violet); text-decoration-color: rgba(168, 139, 245, 0.4); }
a:hover { color: var(--gold); text-decoration-color: rgba(245, 191, 84, 0.5); }

/* Frosted panel — one question, or one clause of the policy. */
.card {
  background: rgba(246, 242, 237, 0.045);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card p:last-child { margin-bottom: 0; }

ul { margin: 0 0 16px; padding-left: 20px; color: var(--subtext); }
li { margin: 0 0 8px; }
li::marker { color: var(--gold); }

kbd {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  background: rgba(246, 242, 237, 0.09);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.path { color: var(--text); }

.mail {
  font-family: var(--serif);
  font-size: 19px;
  word-break: break-all;
}

footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

footer a { color: var(--faint); }
footer a:hover { color: var(--subtext); }

@media (max-width: 520px) {
  header { padding-top: 48px; }
  h1 { font-size: 28px; }
  .card { padding: 18px 18px; }
}

/* Nine language choices remain accessible on narrow screens. */
.langs button { min-height: 44px; }
.langs button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.card p { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .langs button { transition: none; }
}
