/* ==========================================================================
   Orbit Fast — Support / Legal / Feedback
   Rebuilt self-hosted. Colors & fonts aligned to the main site (orbitfast.app):
     --ink   #000            primary text, headings, links, logo
     --muted rgba(0,0,0,.5)  secondary text  (== main hero subtitle/footer)
     --bg    #fff            background       (main site is pure white)
     font    Inter           (same family & weight range as the landing page)
   ========================================================================== */

:root {
  --bg: #fff;
  --ink: #000;
  --muted: rgba(0, 0, 0, 0.5);
  --line: #e5e5e5;
  --surface: #fff;
  --surface-hover: #f5f5f5;
  /* functional, non-brand states kept as-is */
  --danger: #e53e3e;
  --success: #48bb78;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Wordmark inherits brand ink via currentColor */
.logo {
  color: var(--ink);
}
.logo svg {
  width: auto;
  display: block;
}
.logo a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

/* --- Centered layouts (hub + legal index) -------------------------------- */
body.is-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* --- Hub (support root) -------------------------------------------------- */
.page-hub .container {
  max-width: 480px;
  text-align: center;
}
.page-hub .logo {
  margin-bottom: 24px;
}
.page-hub .logo svg {
  height: 40px;
  margin: 0 auto;
}
.page-hub .section {
  margin-bottom: 32px;
}
.page-hub .section:last-child {
  margin-bottom: 0;
}
.page-hub .section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-hub .links {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.page-hub .links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.page-hub .links a:hover {
  color: var(--muted);
}

/* --- Legal index --------------------------------------------------------- */
.page-legal .container {
  max-width: 400px;
  text-align: center;
}
.page-legal .logo {
  margin-bottom: 48px;
}
.page-legal .logo svg {
  height: 32px;
  margin: 0 auto;
}
.page-legal h1 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 32px;
  color: var(--muted);
}
.page-legal .links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-legal a.card {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: all 0.15s ease;
}
.page-legal a.card:hover {
  border-color: #ccc;
  background: var(--surface-hover);
}

/* --- Document pages (privacy / terms) ------------------------------------ */
.page-doc {
  padding: 60px 20px;
  line-height: 1.7;
}
.page-doc .container {
  max-width: 680px;
  margin: 0 auto;
}
.page-doc header {
  margin-bottom: 48px;
}
.page-doc .back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}
.page-doc .back-link:hover {
  color: var(--ink);
}
.page-doc h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-doc .last-updated {
  color: var(--muted);
  font-size: 0.875rem;
}
.page-doc .intro {
  margin-bottom: 36px;
}
.page-doc section {
  margin-bottom: 36px;
}
.page-doc h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.page-doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}
.page-doc p {
  color: var(--muted);
  margin-bottom: 16px;
}
.page-doc ul,
.page-doc ol {
  color: var(--muted);
  margin-left: 20px;
  margin-bottom: 16px;
}
.page-doc li {
  margin-bottom: 8px;
}
.page-doc strong {
  font-weight: 600;
  color: var(--ink);
}
.page-doc a {
  color: var(--ink);
}

/* --- Feedback ------------------------------------------------------------ */
.page-feedback {
  padding: 40px 20px;
}
.page-feedback .container {
  max-width: 500px;
  margin: 0 auto;
}
.page-feedback .logo {
  text-align: center;
  margin-bottom: 32px;
}
.page-feedback .logo svg {
  height: 32px;
  margin: 0 auto;
}
.page-feedback .logo img {
  height: 160px;
  width: auto;
  display: block;
  margin: 0 auto;
}
@media screen and (max-width: 479px) {
  .page-feedback .logo img {
    height: 144px;
  }
}
.page-feedback h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.page-feedback .subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}
.page-feedback .form-group {
  margin-bottom: 20px;
}
.page-feedback label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.page-feedback .segmented-control {
  display: flex;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 4px;
}
.page-feedback .segmented-control button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.page-feedback .segmented-control button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.page-feedback input[type="email"],
.page-feedback textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.page-feedback input[type="email"]:focus,
.page-feedback textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.page-feedback textarea {
  min-height: 120px;
  resize: vertical;
}
.page-feedback .char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}
.page-feedback .char-count.error {
  color: var(--danger);
}
.page-feedback .images-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-feedback .image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.page-feedback .image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-feedback .image-preview .remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-feedback .image-preview .loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-feedback .add-image-btn {
  width: 80px;
  height: 80px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  transition: all 0.15s ease;
}
.page-feedback .add-image-btn:hover {
  border-color: #999;
  color: var(--ink);
}
.page-feedback .add-image-btn svg {
  width: 24px;
  height: 24px;
}
.page-feedback .submit-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 12px;
}
.page-feedback .submit-btn:hover:not(:disabled) {
  background: #222;
}
.page-feedback .submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.page-feedback .error-message {
  color: var(--danger);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 12px;
}
.page-feedback .success-container {
  text-align: center;
  padding: 40px 20px;
}
.page-feedback .success-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.page-feedback .success-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}
.page-feedback .success-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.page-feedback .success-message {
  color: var(--muted);
  margin-bottom: 24px;
}
.page-feedback .back-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.page-feedback .back-btn:hover {
  border-color: #ccc;
  background: var(--surface-hover);
}

.hidden {
  display: none !important;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
