/* Styling for the public Support & Help Center.
   Self-contained on purpose: no external fonts or CDNs, so the page renders identically for a
   Zoom Marketplace or app-store reviewer behind any network policy. Token names match
   ../legal/legal.css so the public pages read as one site. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f5;
  --text: #1a1d21;
  --muted: #5b6470;
  --border: #e2e6ea;
  --accent: #1f6feb;
  --accent-contrast: #ffffff;
  --accent-soft-bg: #eef4ff;
  --accent-soft-border: #cadcff;
  --success-bg: #ecfdf3;
  --success-border: #a6e7c2;
  --success-text: #15683c;
  --danger-bg: #fef2f2;
  --danger-border: #f4bcbc;
  --danger-text: #a02020;
  --warn-bg: #fff8e6;
  --warn-border: #f0c36d;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2126;
    --surface-2: #232a31;
    --text: #e8eaed;
    --muted: #9aa4b2;
    --border: #2c333b;
    --accent: #6fa8ff;
    --accent-contrast: #0b1220;
    --accent-soft-bg: #17233a;
    --accent-soft-border: #2b3f63;
    --success-bg: #12291d;
    --success-border: #2c5f42;
    --success-text: #7fdcaa;
    --danger-bg: #2c1618;
    --danger-border: #633034;
    --danger-text: #f0a2a2;
    --warn-bg: #2e2716;
    --warn-border: #6b5620;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

a { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

header.page {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

/* ---------- sections ---------- */

section { margin: 44px 0 0; scroll-margin-top: 24px; }

h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-note {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 68ch;
}

h3 { font-size: 16px; margin: 0 0 6px; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 10px; }

.card .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.card .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  word-break: break-word;
}

.card.highlight {
  background: var(--accent-soft-bg);
  border-color: var(--accent-soft-border);
}

.hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--muted); }
.hours-list .time { font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- callout ---------- */

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0 0;
}
.callout p { margin: 0; font-size: 15px; }
.callout p + p { margin-top: 10px; }

/* ---------- knowledge base / faq ---------- */

details.kb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

details.kb > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 46px 18px 22px;
  position: relative;
  font-weight: 600;
}

details.kb > summary::-webkit-details-marker { display: none; }

details.kb > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 25px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

details.kb[open] > summary::after { transform: rotate(-135deg); top: 28px; }
details.kb[open] > summary { border-bottom: 1px solid var(--border); }

details.kb > summary .kb-sub {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.kb-body { padding: 18px 22px 22px; font-size: 15px; }
.kb-body > :first-child { margin-top: 0; }
.kb-body > :last-child { margin-bottom: 0; }
.kb-body p { margin: 0 0 12px; }
.kb-body ol, .kb-body ul { margin: 0 0 12px; padding-left: 22px; }
.kb-body li { margin: 6px 0; }

/* ---------- form ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.req { color: var(--danger-text); }

input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
}

textarea { min-height: 150px; resize: vertical; }

input[type="file"] { padding: 10px 13px; }

.field-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: 27px; }
  .wrap { padding: 28px 16px 72px; }
  .form-card { padding: 20px; }
}

.char-count { color: var(--muted); font-size: 13px; }

/* ---------- form status ---------- */

.status { margin: 0 0 18px; }

.status:empty { display: none; }

.alert {
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid transparent;
  font-size: 15px;
}

.alert h3 { margin: 0 0 6px; font-size: 16px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 8px; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

.alert.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.alert.error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.ticket-ref {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--success-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

[hidden] { display: none !important; }

/* ---------- footer ---------- */

footer.page {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer.page a { margin-right: 16px; }
footer.page p { margin: 0 0 10px; }
