/* Zelora support site. Plain CSS, system fonts, no external assets, no scripts.
   Palette: ink #0A0814, surfaces #14112A, accent #9B7BFF, action gradient #6D4AE8 -> #3F2A9E,
   text #F4F3FB, secondary #A9A6C3. Dark only, calm, big type, rounded tabular digits. */

:root {
  color-scheme: dark;
  --ink: #0A0814;
  --surface: #14112A;
  --surface-2: #1C1838;
  --line: rgba(155, 123, 255, 0.22);
  --accent: #9B7BFF;
  --accent-soft: rgba(155, 123, 255, 0.14);
  --grad-a: #6D4AE8;
  --grad-b: #3F2A9E;
  --text: #F4F3FB;
  --muted: #A9A6C3;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 72ch;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 30rem at 80% -10%, rgba(109, 74, 232, 0.28), transparent 60%),
    radial-gradient(40rem 24rem at -10% 100%, rgba(63, 42, 158, 0.32), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* Header and footer */
header, footer {
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
header { border-bottom: 1px solid var(--line); }
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }

nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9375rem;
}
nav a:hover, nav a:focus-visible { border-color: var(--accent); }
nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border-color: transparent;
  color: #fff;
}

/* Main column */
main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) var(--gutter) clamp(40px, 8vw, 96px);
}
main.article { max-width: 820px; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-top: 2.25em; }
h3 { font-size: 1.125rem; margin-top: 1.5em; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.25em; }
li + li { margin-top: 0.4em; }
strong { color: var(--text); font-weight: 650; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.lead { font-size: clamp(1.125rem, 2.2vw, 1.375rem); color: var(--muted); max-width: 60ch; }
.meta { color: var(--muted); font-size: 0.9375rem; }

/* Links: accent text with a gradient underline; actions: gradient pills with white text. */
main a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 1px;
}
main a:hover, main a:focus-visible { color: #fff; background-size: 100% 100%; border-radius: 4px; }

.button, main a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(109, 74, 232, 0.25);
}
.button:hover, main a.button:hover, .button:focus-visible { filter: brightness(1.08); }
.button.secondary, main a.button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 0; }

/* Home */
.hero { padding-bottom: clamp(16px, 4vw, 40px); }
.hero h1 { max-width: 16ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #C9B8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.cards li { max-width: none; margin: 0; }
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background-image: none;
}
main a.card { background-image: none; padding-bottom: 22px; }
main a.card:hover, main a.card:focus-visible { border-color: var(--accent); color: var(--text); border-radius: var(--radius); background-size: auto; }
.card h2, .card h3 { margin-top: 0; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.card .go { color: var(--accent); font-weight: 650; margin-top: auto; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel h3 { margin-top: 0; }
.panel ul { margin-bottom: 0; }
.panel.accent { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0.5rem 0 0; list-style: none; }
.pill-list li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

dl { margin: 0 0 1.25em; }
dt { font-weight: 650; margin-top: 0.9em; }
dd { margin: 0.2em 0 0; color: var(--muted); max-width: var(--measure); }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: 0.9375rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 650; }

.placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

footer nav a { background: transparent; border-color: transparent; color: var(--muted); min-height: 44px; }
footer nav a:hover, footer nav a:focus-visible { color: var(--text); border-color: var(--line); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  header { padding: 14px var(--gutter); }
  nav { width: 100%; }
  nav a { flex: 1 1 auto; justify-content: center; }
  .button, main a.button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
