/* ============================================================
   inner-v2.css — Shared styles for Arcline inner pages
   Requires: home-v2.css (CSS variables + base classes)
   Used by: contact.html, faq.html (and future inner pages)
   ============================================================ */

/* ── SECTION HELPERS ── */
.section--sm { padding: 3.75rem 0; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep {
  color: var(--border);
  font-weight: 400;
}

/* ── PAGE HERO (light) ── */
.page-hero-light {
  padding: 4rem 0 3.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% -20%, rgba(0,119,204,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.1;
  letter-spacing: -0.032em;
  margin-bottom: 1rem;
  max-width: 680px;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.72;
  max-width: 560px;
}

/* ── SECTION LABEL ── */
.section-label-light {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 3.5rem;
  align-items: start;
}

/* ── CHANNEL CARDS ── */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.channel-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.channel-card:last-child { border-bottom: none; }
.channel-card:hover { background: var(--bg); }

.channel-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.channel-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.25rem;
}

.channel-desc {
  font-size: 0.835rem;
  color: var(--text);
  line-height: 1.62;
  margin-bottom: 0.5rem;
}

.channel-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}
.channel-action:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── EMAIL DIRECTORY ── */
.email-dir {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
}

.email-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
  flex-wrap: wrap;
}
.email-row:last-child { border-bottom: none; padding-bottom: 0; }
.email-row:first-child { padding-top: 0; }

.email-dept {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  flex-shrink: 0;
}

.email-addr {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}
.email-addr:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── CONTACT FORM CARD ── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: sticky;
  top: 84px;
}

.form-head {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.form-head__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-strong);
}

.form-body {
  padding: 1.75rem;
}

/* ── FORM ELEMENTS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-strong);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,119,204,0.12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.form-select option { color: var(--text-strong); }
.form-select optgroup { color: var(--text-muted); font-size: 0.775rem; }

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  font-style: italic;
}

/* full-width button modifier */
.btn--full { width: 100%; justify-content: center; margin-top: 1.25rem; }

/* ── FORM SUCCESS ── */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; }

.form-success__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}
.form-success__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

/* ── SECTION HEADER HELPERS ── */
.sec-header { margin-bottom: 2.25rem; }
.sec-header--center { text-align: center; }

.sec-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

/* ── FAQ ACCORDION ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-category-label {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1.75rem 0 0.75rem;
}
.faq-category-label:first-child { padding-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }

/* prevent double border when preceded by a category label */
.faq-category-label + .faq-item { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 0;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
  transition: color var(--t);
}
.faq-q:hover { color: var(--accent); }

.faq-q__icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease, color 0.15s ease;
  display: inline-block;
}
.faq-item.open .faq-q__icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.72;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 1.25rem;
}
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ── FAQ CTA BANNER ── */
.faq-cta {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 3.5rem;
}

.faq-cta__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.025em;
  margin-bottom: 0.625rem;
}

.faq-cta__sub {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 1.75rem;
}

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE (contact / faq) ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form-wrap {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-hero-light { padding: 2.75rem 0 2.25rem; }
  .section--sm { padding: 2.75rem 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .faq-cta { padding: 2rem 1.5rem; }
}

@media (max-width: 520px) {
  .email-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .form-body { padding: 1.25rem; }
  .form-head { padding: 1rem 1.25rem; }
}

/* ============================================================
   ADDITIONAL STYLES — why-bsd, open-source, referral pages
   ============================================================ */

/* ── PROSE / ARTICLE BODY ── */
.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}
.article-body h2:first-child { margin-top: 0; }

.article-body p {
  font-size: 0.9625rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 1rem;
}
.article-body p:last-child { margin-bottom: 0; }

.article-body ul,
.article-body ol {
  padding-left: 1.375rem;
  margin-bottom: 1.25rem;
}

.article-body li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 0.4rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--accent-dark); }

/* ── CALLOUT BOX (inline) ── */
.callout-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.125rem 1.375rem;
  margin: 2rem 0;
}
.callout-box p {
  font-size: 0.9375rem;
  color: var(--text-strong);
  line-height: 1.65;
  margin: 0;
}
.callout-box a {
  color: var(--accent);
  font-weight: 600;
}

/* ── BSD FEATURE SECTION HEADERS ── */
.bsd-section-label {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  display: block;
}

/* ── COMPARISON TABLE ── */
.compare-wrap {
  margin: 1.5rem 0 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  white-space: nowrap;
}

.compare-table th {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.125rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th:not(:first-child) { text-align: center; }

.compare-table td {
  padding: 0.8rem 1.125rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  white-space: normal;
  line-height: 1.5;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}

.compare-table .chk  { color: var(--green); font-weight: 700; font-size: 1.05rem; }
.compare-table .part { color: #d97706;      font-weight: 700; }
.compare-table .no   { color: #ef4444;      font-weight: 700; }
.compare-table .note { font-size: 0.8rem; color: var(--text-muted); }

/* ── BSD FEATURE GRID ── */
.bsd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.bsd-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bsd-card__tag {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.bsd-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.bsd-card__desc {
  font-size: 0.855rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

/* ── ARTICLE CTA (inline, light bg) ── */
.article-cta {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  margin-top: 3rem;
}

.article-cta__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.article-cta__sub {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 1.375rem;
}

/* ── CTA BANNER (full-width dark, for inner pages) ── */
.cta-banner {
  background: var(--dark);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner__eyebrow {
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.875rem;
}
.cta-banner__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner__sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.cta-banner__actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner__note {
  margin-top: 1.125rem;
  font-size: 0.8rem;
  color: var(--dark-muted);
}

/* ── OSS PROJECT CARDS ── */
.oss-section-wrap {
  padding: 3rem 0 0;
}

.oss-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin-bottom: 1.375rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.oss-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.oss-section-count {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.oss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.oss-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: box-shadow var(--t), border-color var(--t);
}
.oss-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.oss-card--wide { grid-column: 1 / -1; }

.oss-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.oss-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.oss-card__license {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2em 0.6em;
  white-space: nowrap;
  flex-shrink: 0;
}

.oss-card__desc {
  font-size: 0.845rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.oss-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.25rem;
}
.oss-card__link:hover { text-decoration: underline; }

/* ── OSS SUPPORT / PHILOSOPHY SECTIONS ── */
.oss-prose {
  max-width: 720px;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.oss-prose h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.022em;
  margin-bottom: 0.75rem;
}

.oss-prose p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 1rem;
}

.oss-prose ul {
  padding-left: 1.375rem;
  margin-bottom: 1rem;
}

.oss-prose li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 0.375rem;
}

.oss-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.oss-prose a:hover { color: var(--accent-dark); }

/* ── REFERRAL REWARD GRID ── */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.reward-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.625rem;
  text-align: center;
  border-top: 3px solid var(--accent);
  transition: box-shadow var(--t);
}
.reward-card:hover { box-shadow: var(--shadow-md); }

.reward-card__label {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.reward-card__value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ── REFERRAL STEPS ── */
.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin: 1.5rem 0 3rem;
}
.referral-steps::before {
  content: '';
  position: absolute;
  top: 1.125rem;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 1px;
  background: var(--border);
}

.referral-step {
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
}

.referral-step__num {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}
.referral-step:last-child .referral-step__num { background: var(--green); }

.referral-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}

.referral-step__body {
  font-size: 0.845rem;
  color: var(--text);
  line-height: 1.65;
}

/* ── REFERRAL WHO IT'S FOR ── */
.who-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.who-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.who-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── PARTNER TRACK HIGHLIGHT ── */
.partner-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1rem 0 2.5rem;
}

.partner-box__label {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.partner-box__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}

.partner-box p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.72;
  margin: 0;
}

.partner-box a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ── CONDITIONS LIST ── */
.conditions-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.conditions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.conditions-list li::before {
  content: '·';
  color: var(--accent);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -0.1em;
}

/* ── REFERRAL INLINE CTA ── */
.referral-cta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  margin-top: 1rem;
}

.referral-cta-box__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.referral-cta-box__sub {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto 1.375rem;
}

/* ── RESPONSIVE ADDITIONS ── */
@media (max-width: 960px) {
  .bsd-grid { grid-template-columns: repeat(2, 1fr); }
  .oss-grid { grid-template-columns: repeat(2, 1fr); }
  .reward-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .bsd-grid { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr; }
  .oss-card--wide { grid-column: 1; }

  .referral-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .referral-steps::before { display: none; }
  .referral-step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0;
  }
  .referral-step__num { margin: 0; flex-shrink: 0; }

  .reward-grid { grid-template-columns: repeat(2, 1fr); }

  .compare-table { font-size: 0.8rem; }
  .compare-table th,
  .compare-table td { padding: 0.6rem 0.75rem; }

  .cta-banner { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .reward-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .reward-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL / PROSE STYLES
   ============================================================ */

.prose {
  max-width: 720px;
}

.prose p {
  font-size: 0.9625rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 1.125rem;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.prose h2.first-h2,
.prose h2:first-of-type {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.375rem;
  margin-bottom: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prose li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.72;
}

.prose strong {
  font-weight: 600;
  color: var(--text-strong);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--t);
}

.prose a:hover { color: var(--accent-dark); }

/* Doc meta pill */
.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.875rem;
  margin-bottom: 2rem;
}

/* Highlight / info box */
.highlight-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.125rem 1.25rem;
  margin-bottom: 1.5rem;
}

.highlight-box p {
  font-size: 0.9rem;
  color: var(--text-strong);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Numbered notice box */
.notice-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.375rem 1.5rem 1.375rem 2rem;
  margin-bottom: 1.25rem;
}

.notice-box ol {
  padding-left: 0.25rem;
  gap: 0.625rem;
  display: flex;
  flex-direction: column;
}

.notice-box li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.72;
}

/* Contact / callout block at end of legal docs */
.doc-contact {
  margin-top: 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.625rem;
}

.doc-contact__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.doc-contact p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

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

.doc-contact code {
  font-size: 0.875em;
  background: var(--border-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--text-strong);
}

/* AUP prohibited headings */
.prose h2.danger {
  color: #b91c1c;
  border-top-color: #fecaca;
}

/* ============================================================
   STATUS PAGE STYLES
   ============================================================ */

.status-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.status-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% -20%, rgba(0,119,204,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.status-hero__title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}

.status-hero__updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* Overall status badge */
.overall-status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1.5px solid;
}

.overall-status--ok  { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.overall-status--warn{ background: #fffbeb; color: #b45309; border-color: #fde68a; }
.overall-status--err { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.overall-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.overall-status--ok  .overall-status__dot { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
.overall-status--warn .overall-status__dot { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,0.25); }
.overall-status--err .overall-status__dot { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.25); }

/* Status group */
.status-group { margin-bottom: 2rem; }

.status-group__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.status-group__body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Status table header row */
.status-table__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Status row */
.status-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t);
}

.status-row:last-child { border-bottom: none; }
.status-row:hover { background: var(--bg); }

.status-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.125rem;
}

.status-row__desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.status-row__uptime {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

/* Status dot */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot--ok   { background: #22c55e; }
.status-dot--warn { background: #f59e0b; }
.status-dot--err  { background: #ef4444; }

/* Status badge pill */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge--ok    { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-badge--ok::before { background: #22c55e; }

.status-badge--warn  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.status-badge--warn::before { background: #f59e0b; }

.status-badge--err   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-badge--err::before { background: #ef4444; }

.status-badge--maint { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); }
.status-badge--maint::before { background: var(--accent); }

/* Incident list */
.incident-list { display: flex; flex-direction: column; gap: 1rem; }

.no-incidents {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.no-incidents__icon {
  width: 1.75rem;
  height: 1.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #15803d;
  font-weight: 800;
  flex-shrink: 0;
}

.incident-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.incident-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.incident-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.375rem;
}

.incident-card__body {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
}

/* Maintenance notice box */
.maintenance-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 1.125rem 1.25rem;
  margin-bottom: 1.5rem;
}

.maintenance-notice__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 0.375rem;
}

.maintenance-notice p {
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.65;
}

/* Status/incident section sub-header */
.sec-header__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

/* ── STATUS RESPONSIVE ── */
@media (max-width: 768px) {
  .status-hero { padding: 2rem 0 1.75rem; }
  .status-table__head { display: none; }
  .status-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .status-row > div { grid-column: 1 / -1; }
  .status-row__uptime { display: none; }
}

/* ============================================================
   404 PAGE STYLES
   ============================================================ */

.error-page {
  min-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.error-page__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.error-page__code {
  font-size: clamp(5rem, 15vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.error-page__title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.error-page__desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-page__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.error-page__links-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.error-page__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--t);
}

.error-page__link:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-light);
}
