/* ==========================================================================
   SpeakLegends — Support page styles
   Self-contained, zero external dependencies. Brand tokens ("clean4" / c4)
   mirror the values used on the Privacy Policy page so the two pages match.
   Served at: https://speaklegends.com/support
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  /* Brand palette (clean4) */
  --c4-blue:        #1cb0f6;  /* primary accent */
  --c4-blue-dark:   #1592d4;
  --c4-blue-deep:   #0f6fa8;  /* accessible text-on-white blue */
  --c4-blue-soft:   #ddf4ff;
  --c4-blue-bg:     #f0f9ff;  /* page background */
  --c4-blue-bg2:    #eaf6ff;
  --c4-blue-bg3:    #d6ecff;
  --c4-ink:         #3c3c3c;  /* body text */
  --c4-gray:        #777;     /* muted text */
  --c4-line:        #e5e5e5;  /* borders */
  --c4-snow:        #fff;
  --c4-gold:        #f5c842;
  --c4-flame:       #ff9600;
  --c4-green:       #58cc02;
  --c4-green-dark:  #48a800;
  --c4-red:         #ff4b4b;

  /* Radii */
  --radius-btn:   16px;
  --radius-card:  20px;
  --radius-panel: 24px;
  --radius-pill:  999px;
  --radius-tile:  14px;

  /* Lip shadows (the chunky 4px bottom edge that defines the brand) */
  --shadow-lip-blue: 0 4px 0 #1592d4;
  --shadow-lip-line: 0 4px 0 #e5e5e5;
  --shadow-lip-gold: 0 4px 0 #ff9600;
  --shadow-card:     0 2px 0 #e5e5e5;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.5;
  color: var(--c4-ink);
  background: var(--c4-blue-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c4-ink);
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

textarea { resize: vertical; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Visible focus ring for keyboard users */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--c4-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Skip link ------------------------------------------------------------ */
.sl-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--c4-blue);
  color: #fff;
  font-weight: 800;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-btn) 0;
}
.sl-skip-link:focus { left: 0; }

/* --- Layout helpers ------------------------------------------------------- */
.sl-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sl-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Shared primitives ---------------------------------------------------- */
.sl-card {
  background: var(--c4-snow);
  border: 2px solid var(--c4-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.sl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--c4-blue-soft);
  color: var(--c4-blue-deep);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-btn);
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 50ms ease;
}
.sl-btn:active { transform: translateY(4px); box-shadow: none !important; }

.sl-btn-primary {
  background: var(--c4-blue);
  color: #fff;
  box-shadow: var(--shadow-lip-blue);
}
.sl-btn-secondary {
  background: #fff;
  color: var(--c4-blue);
  border: 2px solid var(--c4-line);
  box-shadow: var(--shadow-lip-line);
}
.sl-btn-gold {
  background: var(--c4-gold);
  color: var(--c4-ink);
  box-shadow: var(--shadow-lip-gold);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.sl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c4-snow);
  border-bottom: 2px solid var(--c4-line);
}

.sl-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}

.sl-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c4-ink);
  flex-shrink: 0;
}
.sl-logo .sl-logo-accent { color: var(--c4-blue); }

.sl-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.sl-nav-links a {
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--c4-ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sl-nav-links a:hover { background: var(--c4-blue-soft); }
.sl-nav-links a[aria-current="page"] { color: var(--c4-blue); }
.sl-nav-links .sl-btn { margin-left: 0.75rem; padding: 12px 20px; font-size: 0.95rem; }

/* Mobile nav: CSS-only disclosure via a checkbox (no JS) */
.sl-nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sl-nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c4-line);
  border-radius: var(--radius-btn);
  color: var(--c4-ink);
  cursor: pointer;
}

@media (max-width: 820px) {
  .sl-nav-burger { display: inline-flex; }
  .sl-nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--c4-snow);
    border-bottom: 2px solid var(--c4-line);
    padding: 0.75rem;
  }
  .sl-nav-toggle:checked ~ .sl-nav-links { display: flex; }
  .sl-nav-links .sl-btn { margin-left: 0; margin-top: 0.5rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.sl-hero {
  background: var(--c4-blue);
  color: var(--c4-snow);
  /* subtle dotted texture, drawn purely with a radial gradient */
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.sl-hero .sl-container { padding-top: 4.5rem; padding-bottom: 4.5rem; }

.sl-hero-pill {
  background: rgba(255, 255, 255, 0.18);
  color: var(--c4-snow);
}

.sl-hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--c4-snow);
}

.sl-hero-lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.sl-hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Generic page section
   ========================================================================== */
.sl-section { padding-block: 4rem; }
.sl-section--tint { background: var(--c4-blue-bg2); }

.sl-section-head { max-width: 42rem; }
.sl-section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 900;
}
.sl-section-head p {
  margin-top: 0.85rem;
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--c4-gray);
  line-height: 1.6;
}

.sl-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c4-blue-deep);
}

/* ==========================================================================
   Contact section
   ========================================================================== */
.sl-contact-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}
@media (max-width: 880px) {
  .sl-contact-grid { grid-template-columns: 1fr; }
}

/* Contact form card */
.sl-form-card { padding: 1.75rem; }
@media (min-width: 640px) { .sl-form-card { padding: 2.25rem; } }

.sl-form-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
}
.sl-form-card .sl-form-intro {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--c4-gray);
  line-height: 1.6;
}

.sl-form { margin-top: 1.5rem; }

.sl-field { margin-bottom: 1.1rem; }
.sl-field:last-of-type { margin-bottom: 0; }

.sl-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--c4-ink);
  margin-bottom: 0.4rem;
}
.sl-field .sl-req { color: var(--c4-red); }

.sl-input,
.sl-textarea,
.sl-select {
  width: 100%;
  background: var(--c4-blue-bg);
  border: 2px solid var(--c4-line);
  border-radius: var(--radius-tile);
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c4-ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sl-input::placeholder,
.sl-textarea::placeholder { color: var(--c4-gray); font-weight: 500; }

.sl-input:hover,
.sl-textarea:hover,
.sl-select:hover { border-color: var(--c4-blue-bg3); }

.sl-input:focus,
.sl-textarea:focus,
.sl-select:focus {
  outline: none;
  border-color: var(--c4-blue);
  background: var(--c4-snow);
}

.sl-textarea { min-height: 130px; line-height: 1.55; }

.sl-select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.sl-field-hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c4-gray);
  line-height: 1.45;
}

.sl-form-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.sl-form-actions .sl-btn { width: 100%; }
@media (min-width: 480px) {
  .sl-form-actions .sl-btn { width: auto; }
}

/* Small note explaining the static-form delivery mechanism */
.sl-form-note {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.6rem;
  background: var(--c4-blue-bg);
  border: 2px solid var(--c4-line);
  border-radius: var(--radius-tile);
  padding: 0.85rem 1rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--c4-gray);
  line-height: 1.5;
}
.sl-form-note svg { flex-shrink: 0; color: var(--c4-blue-deep); margin-top: 1px; }

/* Contact aside (direct email + response time) */
.sl-contact-aside { display: grid; gap: 1.25rem; }

.sl-info-card { padding: 1.5rem; }
.sl-info-card .sl-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-tile);
  background: var(--c4-blue-soft);
  color: var(--c4-blue-deep);
}
.sl-info-card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}
.sl-info-card p {
  margin-top: 0.45rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--c4-gray);
  line-height: 1.6;
}
.sl-info-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 800;
  color: var(--c4-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sl-info-link:hover { color: var(--c4-blue); }

/* ==========================================================================
   FAQ section
   ========================================================================== */
.sl-faq-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

/* Each FAQ item is a native <details> — fully functional with zero JS */
.sl-faq-item {
  background: var(--c4-snow);
  border: 2px solid var(--c4-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sl-faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c4-ink);
  transition: background-color 0.15s ease;
}
.sl-faq-item summary::-webkit-details-marker { display: none; }
.sl-faq-item summary:hover { background: var(--c4-blue-bg); }

/* Plus / minus chevron drawn with CSS */
.sl-faq-chevron {
  flex-shrink: 0;
  margin-left: auto;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--c4-blue-soft);
  color: var(--c4-blue-deep);
  transition: transform 0.2s ease, background-color 0.15s ease;
}
.sl-faq-item[open] .sl-faq-chevron { transform: rotate(45deg); }

.sl-faq-answer {
  padding: 0 1.35rem 1.3rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--c4-gray);
  line-height: 1.7;
}
.sl-faq-answer p { margin-bottom: 0.7rem; }
.sl-faq-answer p:last-child { margin-bottom: 0; }
.sl-faq-answer strong { color: var(--c4-ink); font-weight: 800; }
.sl-faq-answer a {
  color: var(--c4-blue-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sl-faq-answer a:hover { color: var(--c4-blue); }
.sl-faq-answer ol,
.sl-faq-answer ul { margin: 0.5rem 0 0.7rem; padding-left: 1.3rem; }
.sl-faq-answer ol { list-style: decimal; }
.sl-faq-answer ul { list-style: disc; }
.sl-faq-answer li { margin: 0.3rem 0; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.sl-cta {
  background: var(--c4-blue);
  color: var(--c4-snow);
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  border-radius: var(--radius-card);
  padding: 2.75rem 1.5rem;
  text-align: center;
}
@media (min-width: 640px) { .sl-cta { padding: 3.25rem 2.5rem; } }
.sl-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 900;
  color: var(--c4-snow);
}
.sl-cta p {
  margin: 0.85rem auto 0;
  max-width: 32rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}
.sl-cta-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sl-footer {
  background: var(--c4-snow);
  border-top: 2px solid var(--c4-line);
  margin-top: 4rem;
}
.sl-footer .sl-container { padding-block: 3rem; }

.sl-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.sl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.sl-footer-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c4-gray);
  transition: color 0.15s ease;
}
.sl-footer-links a:hover { color: var(--c4-blue); }

.sl-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--c4-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sl-footer-bottom p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c4-gray);
}
