/* FieldTrackr homepage — Rugged Precision */
.ft-home {
  --ft-blue: #005EB8;
  --ft-orange: #F96302;
  --ft-green: #10b981;
  --ft-ink: #18181b;
  --ft-muted: #71717a;
  --ft-line: #e4e4e7;
  --ft-bg: #fafafa;
  --ft-surface: #f2f3fb;
  color: var(--ft-ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 94, 184, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(249, 99, 2, 0.06), transparent 55%),
    var(--ft-bg);
  line-height: 1.5;
}

.ft-home *,
.ft-home *::before,
.ft-home *::after { box-sizing: border-box; }

.ft-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.ft-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ft-line);
}

.ft-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.ft-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--ft-ink);
}

.ft-brand:hover { color: var(--ft-ink); }

.ft-icon {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.ft-wordmark {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ft-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ft-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ft-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.ft-nav-cta:hover { background: #004a93; color: #fff !important; }

.ft-nav-cta-ghost {
  background: #fff;
  color: var(--ft-ink) !important;
  border-color: var(--ft-line);
}

.ft-nav-cta-ghost:hover {
  border-color: var(--ft-blue);
  color: var(--ft-blue) !important;
  background: #fff;
}

.ft-hero {
  padding: 20px 0 40px;
  text-align: center;
}

.ft-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.ft-hero .ft-sub {
  max-width: 680px;
  margin: 0 auto 16px;
  color: var(--ft-muted);
  font-size: 1.05rem;
}

.ft-channels {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  list-style: none;
  padding: 0;
}

.ft-channels li {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ft-muted);
}

.ft-channels .wa { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.ft-channels .sms { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }

.ft-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ft-hero .ft-demos-block {
  margin-top: 4px;
}

.ft-hero .ft-usecases {
  margin-top: 20px;
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.ft-btn-primary {
  background: var(--ft-blue);
  color: #fff !important;
}
.ft-btn-primary:hover { background: #004a93; color: #fff !important; }

.ft-btn-ghost {
  background: #fff;
  color: var(--ft-ink) !important;
  border-color: var(--ft-line);
}
.ft-btn-ghost:hover { border-color: var(--ft-blue); color: var(--ft-blue) !important; }

.ft-section {
  padding: 56px 0;
}

.ft-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  text-align: center;
}

.ft-section .ft-lead {
  text-align: center;
  color: var(--ft-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.ft-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ft-card {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
  padding: 22px 20px;
}

.ft-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.ft-card p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 0.98rem;
}

.ft-problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ft-problem .ft-card h3 { color: var(--ft-orange); }
.ft-problem .ft-card:last-child h3 { color: var(--ft-blue); }

.ft-problem ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--ft-muted);
}

.ft-problem li { margin-bottom: 6px; }

.ft-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ft-step {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
  padding: 22px 20px;
  position: relative;
}

.ft-step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f1fb;
  color: var(--ft-blue);
  margin-bottom: 14px;
}

.ft-step-icon svg {
  width: 24px;
  height: 24px;
}

.ft-step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ft-step p { margin: 0; color: var(--ft-muted); font-size: 0.95rem; }

.ft-demos-block {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 20px;
  padding: 28px 16px 20px;
  box-shadow: 0 20px 50px rgba(24, 24, 27, 0.06);
}

.ft-demos-block .ftd {
  max-width: none;
  margin: 0;
  padding: 0;
}

.ft-usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.ft-usecase {
  background: var(--ft-surface);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
}

.ft-usecase strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.ft-usecase span {
  color: var(--ft-muted);
  font-size: 0.88rem;
}

.ft-signup {
  background: linear-gradient(160deg, #00478d 0%, #005eb8 55%, #0a6fd0 100%);
  color: #fff;
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
}

.ft-signup h2 { color: #fff; margin-bottom: 8px; }
.ft-signup .ft-lead { color: rgba(255, 255, 255, 0.85); }

.ft-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 12px;
}

.ft-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.ft-form input,
.ft-form textarea,
.ft-form select {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ft-ink);
  background: #fff;
}

.ft-form textarea { min-height: 88px; resize: vertical; }

.ft-form .ft-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ft-form .ft-submit {
  margin-top: 4px;
  width: 100%;
  background: var(--ft-orange);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font: 600 1rem inherit;
  cursor: pointer;
}

.ft-form .ft-submit:hover { background: #e05700; }
.ft-form .ft-submit:disabled { opacity: 0.7; cursor: wait; }

.ft-form-msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  display: none;
}
.ft-form-msg.ok { display: block; background: rgba(16, 185, 129, 0.2); color: #ecfdf5; }
.ft-form-msg.err { display: block; background: rgba(239, 68, 68, 0.25); color: #fff; }

.ft-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ft-foot {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--ft-muted);
  font-size: 0.9rem;
}

.ft-foot a { color: var(--ft-muted); }

@media (max-width: 900px) {
  .ft-grid-3,
  .ft-steps,
  .ft-usecases,
  .ft-problem { grid-template-columns: 1fr; }
  .ft-form .ft-row { grid-template-columns: 1fr; }
  .ft-icon { height: 44px; }
  .ft-wordmark { font-size: 1.4rem; }
  .ft-nav-cta { font-size: 0.82rem; padding: 8px 12px; }
}

@media (max-width: 420px) {
  .ft-nav-cta-ghost { display: none; }
}

/* Hide theme chrome when our full home template is active */
body.ft-demos-home .site-header,
body.ft-demos-home header.wp-block-template-part,
body.ft-demos-home .elementor-location-header,
body.ft-demos-home .elementor-location-footer,
body.ft-demos-home footer.wp-block-template-part {
  display: none !important;
}
body.ft-demos-home .site-content,
body.ft-demos-home #content,
body.ft-demos-home .elementor {
  margin: 0 !important;
  padding: 0 !important;
}
body.ft-demos-home {
  margin: 0;
  background: var(--ft-bg, #fafafa);
}
