/* Shared styles for the secondary pages — /support and /faqs.
   Rides on site.css for the shell (brand, nav, footer, tokens). */

.page-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px var(--gutter) 96px;
}

.page-head { margin-bottom: 40px; }
.page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.03;
}
.page-head p {
  margin: 0; max-width: 60ch;
  font-size: 17px; line-height: 1.6; color: var(--text-body); text-wrap: pretty;
}
.page-head a { color: var(--primary); }

/* ================================================================== form */

.form-card {
  border: 1px solid var(--outline); border-radius: 24px;
  background: var(--surface);
  padding: 32px;
}

.field { margin-bottom: 22px; }
.field:last-of-type { margin-bottom: 0; }

.field > label,
.fieldset__legend {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--on-bg);
}
.field .req { color: var(--primary); margin-left: 2px; }
.hint {
  display: block; margin: 6px 0 0;
  font-size: 12.5px; line-height: 1.5; color: var(--text-dim);
}
.fieldset .hint { margin-top: 12px; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--outline-neutral);
  background: #070b08;
  color: var(--on-bg);
  font: inherit; font-size: 15px; line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #5a5f5b; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 64, .15);
}

/* Native select arrow is invisible on a dark ground, so draw one. */
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%),
                    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: #0a0f0b; color: var(--on-bg); }

/* Error text is shown by the script, which owns the copy; the form carries
   `novalidate` so native bubbles never compete with it. */
.field__error {
  display: none; margin: 6px 0 0;
  font-size: 12.5px; font-weight: 600; color: #ff5470;
}

/* checkbox grid */
.fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.checkgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px;
  margin-top: 4px;
}
.checkgrid label {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--text-body); cursor: pointer; line-height: 1.35;
}
.checkgrid input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkgrid label:hover { color: var(--on-bg); }

/* the honeypot: reachable by bots, never by people or screen readers */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-actions { margin-top: 28px; }
.btn--submit {
  width: 100%; justify-content: center;
  padding: 15px 24px; font-size: 13px;
  border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 0 24px rgba(0, 255, 64, .4);
}
.btn--submit:hover:not(:disabled) { box-shadow: 0 0 36px rgba(0, 255, 64, .7); }
.btn--submit:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.form-note {
  margin: 16px 0 0;
  font-size: 12.5px; line-height: 1.6; color: var(--text-dim);
}
.form-note a { color: var(--primary); }

/* submit result */
.form-status { margin-top: 20px; border-radius: 14px; padding: 18px 20px; display: none; }
.form-status.is-shown { display: block; }
.form-status h2 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.form-status p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.form-status--ok {
  border: 1px solid rgba(0, 255, 64, .45);
  background: rgba(0, 255, 64, .06);
}
.form-status--ok h2 { color: var(--primary); }
.form-status--ok p { color: var(--text-body); }
.form-status--err {
  border: 1px solid rgba(255, 84, 112, .5);
  background: rgba(255, 84, 112, .07);
}
.form-status--err h2 { color: #ff5470; }
.form-status--err p { color: var(--text-body); }
.form-status code {
  font-size: 13px; color: var(--primary);
  background: rgba(0, 0, 0, .35); padding: 1px 6px; border-radius: 5px;
}

/* ================================================================== faqs */

.faq-list { margin: 0; border-top: 1px solid rgba(255, 255, 255, .08); }

.faq {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.faq > summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--on-bg);
  line-height: 1.4;
  transition: color .15s ease;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::marker { content: ''; }
.faq > summary:hover { color: var(--primary); }

/* Drawn in CSS, not set in the icon font. A row's open/close affordance is a
   control, and a control must not disappear — or worse, render as the literal
   word "add" — because a webfont failed or was served stale. */
.faq__toggle {
  position: relative; flex: 0 0 auto;
  width: 20px; height: 14px; margin-top: 5px;
}
.faq__toggle i {
  position: absolute; left: 0;
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: var(--primary);
  transition: transform .22s ease, opacity .18s ease;
}
.faq__toggle i:nth-child(1) { top: 0; }
.faq__toggle i:nth-child(2) { top: 6px; }
.faq__toggle i:nth-child(3) { top: 12px; }

/* Open: the bars close into an X. */
.faq[open] .faq__toggle i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.faq[open] .faq__toggle i:nth-child(2) { opacity: 0; }
.faq[open] .faq__toggle i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.faq > summary:hover .faq__toggle i { background: var(--primary-hover); }

@media (prefers-reduced-motion: reduce) {
  .faq__toggle i { transition: none; }
}

.faq__body { padding: 0 4px 24px; max-width: 68ch; }
.faq__body p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; color: var(--text-body); }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body ul { margin: 0 0 12px; padding-left: 20px; }
.faq__body li { font-size: 15.5px; line-height: 1.7; color: var(--text-body); margin-bottom: 6px; }
.faq__body li::marker { color: var(--primary); }
.faq__body a { color: var(--primary); }
.faq__body strong { color: var(--on-bg); }

.page-cta {
  margin-top: 48px; padding: 28px;
  border: 1px solid var(--outline); border-radius: 20px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.page-cta p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-body); }
.page-cta strong { color: var(--on-bg); display: block; font-size: 17px; margin-bottom: 4px; }

/* ============================================================ responsive */

@media (max-width: 900px) {
  .page-shell { padding: 120px var(--gutter) 72px; }
  .form-card { padding: 24px 20px; }
  .checkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .page-shell { padding-left: 20px; padding-right: 20px; }
  .checkgrid { grid-template-columns: 1fr; }
  .faq > summary { font-size: 16px; }
  .page-cta { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------- notices & error summary */

.inline-note {
  margin: 0 0 22px; padding: 16px 18px;
  border: 1px solid var(--outline); border-left: 3px solid var(--primary);
  border-radius: 12px; background: rgba(0, 255, 64, .04);
}
.inline-note p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-body); }
.inline-note strong { color: var(--on-bg); }

.form-error-summary {
  margin: 0 0 26px; padding: 18px 20px;
  border: 1px solid rgba(255, 84, 112, .5); border-radius: 14px;
  background: rgba(255, 84, 112, .07);
}
.form-error-summary:focus { outline: 2px solid #ff5470; outline-offset: 3px; }
.form-error-summary h2 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: #ff5470; }
.form-error-summary ul { margin: 0; padding-left: 20px; }
.form-error-summary li { margin-bottom: 5px; font-size: 14px; line-height: 1.5; }
.form-error-summary a { color: var(--text-body); text-decoration: underline; }
.form-error-summary a:hover { color: #ff5470; }

/* aria-invalid is set by the script, so the border follows real state rather
   than :invalid, which fires before the person has typed anything. */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #ff5470; }

/* Turnstile renders an iframe here. In interaction-only mode it stays
   zero-height until a challenge is actually needed, so no space is reserved. */
.turnstile-mount:not(:empty) { margin-top: 22px; }
