/* Public marketing site — Generate Letters brand (teal #168B8D on dark) */
:root {
  --gl-brand: #168b8d;
  --gl-brand-hover: #1ca4a6;
  --gl-brand-light: #3eb8ba;
  --gl-brand-dark: #127678;
  --gl-brand-deep: #050606;
  --gl-brand-glow: rgba(22, 139, 141, 0.22);
  /* Legacy aliases used across this stylesheet */
  --gl-navy: var(--gl-brand-dark);
  --gl-navy-light: var(--gl-brand);
  --gl-navy-deep: var(--gl-brand-deep);
  --gl-gold: var(--gl-brand);
  --gl-gold-hover: var(--gl-brand-hover);
  --gl-bg: #f4f7f7;
  --gl-surface: #ffffff;
  --gl-text: #142424;
  --gl-muted: #4a5f5f;
  --gl-border: #d4e4e4;
  --gl-ok: #0a6629;
  --gl-shadow: 0 12px 40px rgba(5, 6, 6, 0.1);
  --gl-radius: 12px;
  --gl-max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.gl-mkt-body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gl-text);
  background: var(--gl-bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gl-mkt-container {
  width: min(100% - 2rem, var(--gl-max));
  margin-inline: auto;
}

.gl-mkt-muted {
  color: var(--gl-muted);
}

/* Header */
.gl-mkt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 6, 0.97);
  border-bottom: 1px solid rgba(22, 139, 141, 0.28);
  backdrop-filter: blur(10px);
}

.gl-mkt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.gl-mkt-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.gl-mkt-brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
}

.gl-mkt-footer-logo {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.gl-mkt-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 1px solid rgba(22, 139, 141, 0.45);
  border-radius: 8px;
  background: rgba(22, 139, 141, 0.12);
  cursor: pointer;
}

.gl-mkt-nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--gl-brand-light);
}

.gl-mkt-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gl-mkt-nav a {
  color: rgba(232, 245, 245, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.gl-mkt-nav a:hover {
  color: var(--gl-brand-light);
}

/* Buttons */
.gl-mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gl-mkt-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.gl-mkt-btn-primary {
  background: var(--gl-brand);
  color: #fff;
  border-color: var(--gl-brand);
}

.gl-mkt-btn-primary:hover {
  background: var(--gl-brand-hover);
  border-color: var(--gl-brand-hover);
}

.gl-mkt-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.gl-mkt-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.gl-mkt-btn-ghost {
  background: var(--gl-surface);
  color: var(--gl-brand-dark);
  border-color: var(--gl-border);
}

.gl-mkt-btn-ghost:hover {
  border-color: var(--gl-brand);
  color: var(--gl-brand);
}

/* Hero carousel */
.gl-mkt-hero {
  background: var(--gl-navy-deep);
  color: #e8eef5;
  overflow: hidden;
}

.gl-mkt-hero-carousel {
  position: relative;
  min-height: 22rem;
}

@media (min-width: 768px) {
  .gl-mkt-hero-carousel {
    min-height: 26rem;
  }
}

.gl-mkt-hero-slide {
  display: none;
  padding: 3rem 0 3.5rem;
  background: linear-gradient(125deg, var(--gl-brand-deep) 0%, #0a1212 40%, #0f2a2b 100%);
}

.gl-mkt-hero-slide.is-active {
  display: block;
  animation: gl-mkt-fade 0.5s ease;
}

@keyframes gl-mkt-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gl-mkt-hero-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .gl-mkt-hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

.gl-mkt-hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-brand-light);
  background: var(--gl-brand-glow);
  border: 1px solid rgba(22, 139, 141, 0.35);
  border-radius: 999px;
}

.gl-mkt-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.15;
  color: #fff;
}

.gl-mkt-hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  max-width: 36rem;
  color: rgba(232, 238, 245, 0.9);
}

.gl-mkt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gl-mkt-hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--gl-radius);
  padding: 1.25rem 1.35rem;
}

.gl-mkt-hero-card strong {
  display: block;
  color: var(--gl-brand-light);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.gl-mkt-hero-card p {
  margin: 0;
  font-size: 0.9rem;
}

.gl-mkt-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(22, 139, 141, 0.3);
  border-radius: var(--gl-radius);
}

.gl-mkt-hero-logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto 1rem;
}

.gl-mkt-hero-visual-caption {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9rem;
  color: rgba(232, 245, 245, 0.88);
  line-height: 1.5;
}

.gl-mkt-hero-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gl-mkt-hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.gl-mkt-hero-dot.is-active {
  background: var(--gl-brand);
  transform: scale(1.15);
}

.gl-mkt-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.gl-mkt-hero-arrow:hover {
  background: rgba(0, 0, 0, 0.35);
}

.gl-mkt-hero-arrow[data-carousel="prev"] {
  left: 0.5rem;
}

.gl-mkt-hero-arrow[data-carousel="next"] {
  right: 0.5rem;
}

/* Sections */
.gl-mkt-section {
  padding: 3.5rem 0;
}

.gl-mkt-section-alt {
  background: var(--gl-surface);
}

.gl-mkt-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gl-brand-dark);
  text-align: center;
}

.gl-mkt-section-lead {
  margin: 0 auto 2.5rem;
  max-width: 40rem;
  text-align: center;
  color: var(--gl-muted);
}

/* Feature split (video area) */
.gl-mkt-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .gl-mkt-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.gl-mkt-video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--gl-radius);
  background: linear-gradient(145deg, var(--gl-brand-deep) 0%, var(--gl-brand-dark) 55%, var(--gl-brand) 100%);
  box-shadow: var(--gl-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: #e8eef5;
}

.gl-mkt-video-frame h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #fff;
}

.gl-mkt-video-frame p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.gl-mkt-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gl-mkt-checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
  border-bottom: 1px solid var(--gl-border);
}

.gl-mkt-checklist li:last-child {
  border-bottom: none;
}

.gl-mkt-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-weight: 700;
  color: var(--gl-brand);
  font-size: 0.95rem;
}

/* Feature cards grid */
.gl-mkt-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gl-mkt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gl-mkt-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gl-mkt-card {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 36, 68, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gl-mkt-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--gl-brand-glow);
  color: var(--gl-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.gl-mkt-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--gl-brand-dark);
}

.gl-mkt-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--gl-muted);
}

.gl-mkt-card a {
  font-weight: 600;
  color: var(--gl-brand);
  text-decoration: none;
}

.gl-mkt-card a:hover {
  color: var(--gl-brand-hover);
}

/* Testimonials */
.gl-mkt-testimonials {
  background: linear-gradient(160deg, var(--gl-brand-deep) 0%, var(--gl-brand-dark) 50%, var(--gl-brand) 100%);
  color: #e8eef5;
}

.gl-mkt-testimonials .gl-mkt-section-title {
  color: #fff;
}

.gl-mkt-testimonials .gl-mkt-section-lead {
  color: rgba(232, 238, 245, 0.85);
}

.gl-mkt-quote-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .gl-mkt-quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gl-mkt-quote {
  margin: 0;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--gl-radius);
}

.gl-mkt-quote p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-style: italic;
}

.gl-mkt-quote footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gl-brand-light);
}

/* CTA band */
.gl-mkt-cta {
  text-align: center;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--gl-brand-deep) 0%, #0f2a2b 50%, var(--gl-brand-dark) 100%);
  color: #e8eef5;
}

.gl-mkt-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.gl-mkt-cta p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}

/* How it works steps */
.gl-mkt-steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .gl-mkt-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gl-mkt-step {
  counter-increment: step;
  padding: 1.25rem;
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
}

.gl-mkt-step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: var(--gl-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.gl-mkt-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--gl-brand-dark);
}

.gl-mkt-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gl-muted);
}

/* Footer */
.gl-mkt-footer {
  background: var(--gl-navy-deep);
  color: rgba(232, 238, 245, 0.85);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.gl-mkt-footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .gl-mkt-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.gl-mkt-footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.gl-mkt-footer-heading {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--gl-brand-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gl-mkt-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gl-mkt-footer-links a {
  color: rgba(232, 238, 245, 0.9);
  text-decoration: none;
}

.gl-mkt-footer-links a:hover {
  color: #fff;
}

.gl-mkt-footer-links li + li {
  margin-top: 0.35rem;
}

.gl-mkt-footer-copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(232, 238, 245, 0.65);
}

.gl-mkt-footer code {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Signup form */
.gl-mkt-form {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  box-shadow: var(--gl-shadow);
}

.gl-mkt-field {
  display: block;
  margin-bottom: 1rem;
}

.gl-mkt-field span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.gl-mkt-field input,
.gl-mkt-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gl-border);
  border-radius: 8px;
  font: inherit;
}

.gl-mkt-flash-ok {
  padding: 0.75rem 1rem;
  background: #e8f5ec;
  color: var(--gl-ok);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.gl-mkt-flash-err {
  padding: 0.75rem 1rem;
  background: #fde8ec;
  color: var(--gl-err, #b00020);
  border-radius: 8px;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .gl-mkt-nav-toggle {
    display: flex;
  }

  .gl-mkt-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--gl-brand-deep);
    border-bottom: 1px solid rgba(22, 139, 141, 0.35);
    box-shadow: var(--gl-shadow);
  }

  .gl-mkt-nav.is-open {
    display: flex;
  }

  .gl-mkt-header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .gl-mkt-hero-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gl-mkt-hero-slide.is-active {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
