/* Public marketing home page.
   Same visual system as the Login / Sign up pages (static/css/pages/auth.css):
   the shared --fightdeck-* palette from style.css, weight-800 tight-tracked
   headings, uppercase accent eyebrows, 10px near-black buttons, 16px cards
   with a soft shadow. The auth components are namespaced `.auth-*` and belong
   to that task's files; rather than edit them, the values are re-expressed here
   under `.home-*` against the same tokens so the two pages read as one product.
   The site header and footer come from base.html unchanged. */

.home-container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* base.html's shared navbar + footer are approved brand components; these two
   rules only load on the marketing page (via page_css) and nudge them to the
   approved mockup here — a ~72px header and an accent "Get Started" pill —
   without forking the shared markup. Other pages are unchanged. */
.fightdeck-navbar {
  padding-block: 0.55rem;
}

.fightdeck-navbar .fightdeck-brand-logo {
  height: 2.6rem;
}

.fightdeck-footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1.15rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--fightdeck-secondary);
  border-radius: 999px;
}

.fightdeck-footer-bottom a:hover,
.fightdeck-footer-bottom a:focus {
  color: #fff;
  background: #ea580c;
}

.home-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

/* --- shared type --- */
.home-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--fightdeck-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-h2 {
  margin: 0;
  color: var(--fightdeck-primary);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.home-head {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

/* --- buttons (mirror .auth-btn) --- */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.home-btn:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.35);
  outline-offset: 2px;
}

.home-btn--primary {
  color: #fff;
  background: var(--fightdeck-primary);
}

.home-btn--primary:hover {
  color: #fff;
  background: #1f2937;
}

.home-btn--secondary {
  color: var(--fightdeck-primary);
  background: #fff;
  border-color: var(--fightdeck-border);
}

.home-btn--secondary:hover {
  color: var(--fightdeck-primary);
  border-color: #cbd5e1;
  background: var(--fightdeck-surface);
}

.home-btn--light {
  color: var(--fightdeck-primary);
  background: #fff;
}

.home-btn--light:hover {
  color: var(--fightdeck-primary);
  background: #e9edf2;
}

/* selector carries enough specificity to beat Bootstrap Reboot's
   `button:not(:disabled){cursor:pointer}` — the button uses aria-disabled,
   not the disabled attribute, so it stays focusable and its state is announced */
.home-btn--disabled,
.home-btn[aria-disabled="true"] {
  color: #9aa2af;
  background: #e5e7eb;
  border-color: transparent;
  cursor: not-allowed;
}

/* --- hero --- */
.home-hero {
  background: var(--fightdeck-surface);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.home-hero__title {
  margin: 0.9rem 0 0;
  color: var(--fightdeck-primary);
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.022em;
}

.home-hero__lead {
  max-width: 46ch;
  margin: 1.25rem 0 0;
  color: #475569;
  font-size: 1.075rem;
  line-height: 1.6;
}

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

.home-support {
  margin: 0.95rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

/* --- screenshot frame (hero visual + showcase images) --- */
.home-frame {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fightdeck-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -12px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 28px 56px -12px rgba(15, 23, 42, 0.28);
}

.home-frame__chrome {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  height: 34px;
  padding-inline: 0.85rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--fightdeck-border);
}

.home-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.home-frame__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 750;
  object-fit: cover;
}

/* --- 3-up rows --- */
.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.home-showcase {
  background: #fff;
}

.home-showcase__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-showcase__caption {
  margin: 0;
  color: var(--fightdeck-text);
  font-size: 0.98rem;
  font-weight: 650;
  text-align: center;
}

/* --- features --- */
.home-features {
  background: var(--fightdeck-surface);
}

.home-feature-card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--fightdeck-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.home-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  color: var(--fightdeck-secondary);
  background: rgba(249, 115, 22, 0.12);
  border-radius: 12px;
}

.home-feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.home-feature-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--fightdeck-primary);
}

.home-feature-card__desc {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- pricing band --- */
.home-pricing {
  background: #0b0d10;
  color: #fff;
  text-align: center;
}

.home-pricing .home-eyebrow {
  color: var(--fightdeck-secondary);
}

.home-pricing__title {
  margin: 0 auto 1rem;
  max-width: 22ch;
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.home-pricing__text {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- partnerships --- */
.home-partners {
  background: #fff;
  text-align: center;
}

.home-partners__text {
  max-width: 40rem;
  margin: 1rem auto 1.75rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-partners__note {
  margin: 0.95rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
  font-style: italic;
}

/* --- responsive --- */
@media (max-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 8vw, 3rem);
  }

  .home-hero__lead {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .home-grid-3 {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-btn {
    width: 100%;
  }
}
