/* soundvia help center — styles.css */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --black:    #0C0C0E;
  --blue:     #1A5CFF;
  --blue-dim: rgba(26,92,255,0.09);
  --blue-mid: rgba(26,92,255,0.22);
  --white:    #FAFAFA;
  --muted:    #888899;
  --border:   #E4E4EC;
  --surface:  #F4F4F8;
  --text-2:   #55556A;
  --success:  #10B981;

  --sidebar-w: 260px;
  --header-h:  58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(250,250,250,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 20px;
}
.header-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--black); text-decoration: none;
  white-space: nowrap;
}
.header-logo span { color: var(--blue); }
.header-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.header-subtitle {
  font-size: 0.8rem; color: var(--muted); font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.header-spacer { flex: 1; }
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  width: 280px;
  transition: border-color .18s, box-shadow .18s;
}
.search-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.search-wrap svg { color: var(--muted); flex-shrink: 0; }
.search-wrap input {
  border: none; background: transparent; outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; color: var(--black); width: 100%;
}
.search-wrap input::placeholder { color: var(--muted); }

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: var(--header-h); bottom: 0;
  width: var(--sidebar-w);
  border-right: 1px solid var(--border);
  background: var(--white);
  overflow-y: auto;
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-section-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px 6px;
  margin-top: 8px;
}
.sidebar-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex; align-items: center;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background .15s, color .15s;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--surface); color: var(--black); }
.nav-item.active { background: var(--blue-dim); color: var(--blue); }

.nav-sub {
  margin-left: 8px;
  display: flex; flex-direction: column; gap: 1px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.nav-sub.open { max-height: 400px; }
.nav-sub-item {
  display: block; padding: 6px 12px 6px 20px;
  font-size: 0.8rem; color: var(--muted);
  border-radius: 7px; cursor: pointer;
  transition: color .15s, background .15s;
  text-decoration: none;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-sub-item:hover { color: var(--black); background: var(--surface); }
.nav-sub-item.active { color: var(--blue); }

/* MAIN */
.main {
  grid-column: 2;
  min-height: calc(100vh - var(--header-h));
}

/* HERO */
.hero {
  padding: 64px 64px 48px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero p {
  color: var(--text-2); font-size: 1rem; line-height: 1.65;
  max-width: 500px; margin-bottom: 36px;
}

/* AUDIENCE CARDS */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 860px;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
}
.audience-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(26,92,255,0.1);
  transform: translateY(-2px);
}
.ac-title { font-size: 0.9rem; font-weight: 600; color: var(--black); }
.ac-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.ac-arrow { font-size: 0.75rem; color: var(--blue); margin-top: 4px; }

/* ARTICLE */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 64px 80px;
}
.article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article-eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.article-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 10px;
}
.article-header p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }

/* FAQ */
.faq-section { margin-bottom: 44px; }
.faq-section-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-list { display: flex; flex-direction: column; gap: 5px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  transition: border-color .18s;
}
.faq-item.open { border-color: var(--blue); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  cursor: pointer; user-select: none;
}
.faq-q-text { font-size: 0.9rem; font-weight: 500; color: var(--black); line-height: 1.4; }
.faq-chevron {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .22s, background .18s;
  color: var(--muted); font-size: 0.65rem;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--blue-dim); color: var(--blue);
}

.faq-body { max-height: 0; overflow: hidden; transition: max-height .32s cubic-bezier(.4,0,.2,1); }
.faq-body-inner {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text-2); line-height: 1.75;
}
.faq-body-inner p { margin-bottom: 10px; }
.faq-body-inner p:last-child { margin-bottom: 0; }
.faq-body-inner ul, .faq-body-inner ol { padding-left: 20px; margin: 8px 0 10px; }
.faq-body-inner li { margin-bottom: 5px; }
.faq-body-inner li:last-child { margin-bottom: 0; }
.faq-body-inner strong { color: var(--black); font-weight: 600; }
.faq-body-inner em { font-style: italic; }
.faq-body-inner code {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px;
  font-family: 'DM Mono', monospace; font-size: 0.82rem; color: var(--black);
}
.faq-body-inner pre { background: var(--black); border-radius: 10px; padding: 14px 18px; overflow-x: auto; margin: 10px 0; }
.faq-body-inner pre code { background: none; border: none; padding: 0; color: #7ABAFF; font-size: 0.8rem; }
.faq-body-inner a { color: var(--blue); text-decoration: none; }
.faq-body-inner a:hover { text-decoration: underline; }
.faq-body-inner ol { list-style: decimal; }

/* SEARCH RESULTS */
.search-results-wrap { padding: 40px 64px 80px; max-width: 860px; margin: 0 auto; }
.search-results-title { font-family: 'Instrument Serif', serif; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.search-results-sub { color: var(--muted); font-size: 0.875rem; margin-bottom: 28px; }
.result-item {
  border: 1px solid var(--border); border-radius: 11px;
  padding: 18px 20px; margin-bottom: 8px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.result-item:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(26,92,255,0.09); }
.result-source { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.result-q { font-size: 0.9rem; font-weight: 500; color: var(--black); margin-bottom: 6px; }
.result-snippet { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }
.result-snippet mark { background: #FFF176; border-radius: 2px; padding: 0 2px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); }
.no-results p { font-size: 0.9rem; }

/* CONTACT */
.contact-wrap {
  margin: 56px 0 0;
  background: var(--black); border-radius: 18px;
  padding: 44px 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  color: white;
}
.contact-left h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 12px; color: white;
}
.contact-left p { color: #99AAC0; font-size: 0.875rem; line-height: 1.6; margin-bottom: 22px; }
.contact-cards { display: flex; flex-direction: column; gap: 10px; }
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px; padding: 14px 16px;
}
.cc-title { font-size: 0.85rem; font-weight: 600; color: white; }
.cc-sub { font-size: 0.75rem; color: #99AAC0; margin-top: 3px; }

.contact-right { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.cf-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #99AAC0; display: block; margin-bottom: 5px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-field { display: flex; flex-direction: column; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 9px; padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; color: white; outline: none;
  transition: border-color .18s;
  -webkit-appearance: none;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.28); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,92,255,0.2); }
.contact-form select option { background: #1a1a2e; }
.contact-form textarea { resize: vertical; min-height: 90px; }
.cf-submit {
  background: var(--blue); color: white; border: none;
  border-radius: 9px; padding: 12px 24px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all .18s; width: 100%;
}
.cf-submit:hover { background: #1248d4; box-shadow: 0 6px 20px rgba(26,92,255,0.3); }
.cf-success { display: none; text-align: center; padding: 40px 0; }
.cf-success .check {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(16,185,129,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 14px; color: var(--success);
}
.cf-success h3 { font-size: 1.1rem; margin-bottom: 7px; color: white; }
.cf-success p { color: #99AAC0; font-size: 0.85rem; }

/* LOADING */
.loading { display: flex; align-items: center; justify-content: center; padding: 80px 40px; flex-direction: column; gap: 14px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--blue); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FOOTER */
.footer { text-align: center; padding: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.78rem; }
.footer a { color: var(--blue); text-decoration: none; }

/* MOBILE */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { grid-column: 1; }
  .hero { padding: 40px 24px 36px; }
  .article-wrap { padding: 32px 24px 60px; }
  .search-results-wrap { padding: 32px 24px 60px; }
  .contact-wrap { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; }
  .cf-row { grid-template-columns: 1fr; }
  .search-wrap { width: 200px; }
}
