/* Neiro Help Center — style.css
   Static, dependency-free, system fonts only. */

:root {
  --ink: #16202b;
  --ink-soft: #445264;
  --ink-mute: #6b7889;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #1f4fd8;
  --brand-dark: #163ba6;
  --brand-soft: #eaf0ff;
  --accent: #0a8f7a;
  --accent-soft: #e3f6f1;
  --warn: #b45309;
  --warn-soft: #fdf2df;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 54, .06), 0 8px 24px rgba(16, 32, 54, .06);
  --shadow-sm: 0 1px 2px rgba(16, 32, 54, .08);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.05vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

:focus-visible {
  outline: 3px solid rgba(31, 79, 216, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.2;
}

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav li { margin: 0; }
.nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { background: #eef2f8; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: #f1f5f9; color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(1000px 420px at 78% -12%, #dce7ff 0%, rgba(220, 231, 255, 0) 62%),
    radial-gradient(700px 320px at 4% 110%, #ddf5ee 0%, rgba(221, 245, 238, 0) 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #06695b;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Search */
.search {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--ink-mute); }
.search .btn { flex: 0 0 auto; }
.search-hint { margin: 10px 0 0; font-size: .84rem; color: var(--ink-mute); }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head p { color: var(--ink-soft); }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.card-link::after { content: " →"; }

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tile-icon svg { width: 22px; height: 22px; }

/* Article list */
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.article-list li:first-child { border-top: 1px solid var(--line); }
.article-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 4px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}
.article-list a:hover { color: var(--brand); }
.article-list .tag {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Accordion */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  position: relative;
  padding: 18px 34px 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-weight: 500;
  transition: transform .18s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 0 18px; color: var(--ink-soft); font-size: .96rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Status page ---------- */

.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #b9e6da;
}
.status-banner .dot { width: 12px; height: 12px; border-radius: 50%; background: #0a8f7a; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(10, 143, 122, .16); }
.status-banner strong { display: block; }
.status-banner span { font-size: .9rem; color: #06695b; }

.status-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.status-table th, .status-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.status-table thead th { background: #f2f5fa; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.status-table tbody tr:last-child td { border-bottom: 0; }
.status-table td:last-child { text-align: right; white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--accent-soft); color: #06695b; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 26px 26px; border-left: 2px solid var(--line); margin: 0; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
}
.timeline time { display: block; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.timeline strong { display: block; margin-bottom: 2px; }
.timeline p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ---------- Forms ---------- */

.form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .9rem; }
.field .req { color: #c02b2b; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 79, 216, .16);
  background: #fff;
}
.field .hint { margin: 6px 0 0; font-size: .82rem; color: var(--ink-mute); }
.field .error {
  margin: 6px 0 0;
  font-size: .84rem;
  font-weight: 500;
  color: #b42318;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d92d20; background: #fff8f7; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.checkbox input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.form-note { margin-top: 16px; font-size: .84rem; color: var(--ink-mute); }

/* ---------- CTA ---------- */

.cta {
  padding: 40px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1b2f4d 0%, #163ba6 100%);
  color: #eaf0ff;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #c9d7f7; margin: 0; max-width: 56ch; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: #e8eeff; color: var(--brand-dark); }

/* ---------- Contact details ---------- */

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { margin: 0 0 18px; }
.contact-list .label { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 3px; }
.contact-list a { font-weight: 600; }
.hours { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.hours dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; font-size: .92rem; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- Legal ---------- */

.legal-body { max-width: 78ch; }
.legal-body h2 { margin-top: 2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.4em; }
.meta-note { font-size: .86rem; color: var(--ink-mute); }

/* ---------- Thanks ---------- */

.thanks { padding: 96px 0; text-align: center; }
.thanks .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #06695b;
}
.thanks .check svg { width: 34px; height: 34px; }
.thanks p { max-width: 56ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); }
.thanks .btn { margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  background: #101a26;
  color: #b8c4d4;
  padding: 56px 0 32px;
  font-size: .92rem;
}
.site-footer a { color: #d7e2f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #8fa1b8; }
.footer-brand p { margin-top: 16px; color: #93a4ba; font-size: .88rem; max-width: 34ch; }
.footer-col h3 {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7e91a9;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #22303f;
  font-size: .84rem;
  color: #8497ad;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ---------- Misc ---------- */

.muted { color: var(--ink-mute); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.breadcrumbs { font-size: .86rem; color: var(--ink-mute); margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }

.page-head { padding: 56px 0 8px; }
.page-head p { color: var(--ink-soft); max-width: 68ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a, .chips span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: .86rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.chips a:hover { border-color: var(--brand); color: var(--brand); }

.empty-state { padding: 32px; text-align: center; color: var(--ink-mute); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 10px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 32, 54, .08);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 10px; }
  .hero { padding: 48px 0 44px; }
  section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .form-card { padding: 22px; }
  .cta { padding: 28px; }
  .thanks { padding: 64px 0; }
  .status-table th, .status-table td { padding: 12px 14px; }
  .status-table thead { display: none; }
  .status-table, .status-table tbody, .status-table tr, .status-table td { display: block; width: 100%; }
  .status-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .status-table tr:last-child { border-bottom: 0; }
  .status-table td { border: 0; padding: 4px 14px; }
  .status-table td:last-child { text-align: left; padding-bottom: 10px; }
  .page-head { padding: 40px 0 4px; }
}

@media (max-width: 460px) {
  .header-inner { gap: 12px; }
  .brand small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-bottom p { margin: 0; }
.card h3.stat { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); margin-bottom: 6px; }
.tile-icon { font-weight: 700; font-size: 1.05rem; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .search { display: none !important; }
  body { background: #fff; }
}
