/* ==========================================================================
   Footstep App landing page  ·  white + green theme (matches TechsaCare site)
   Mobile-first. Everything is scoped under .fp / .fp-* so it will not clash
   with your website's own CSS. Breakpoints: 640px (large phone / small tablet),
   900px (tablet landscape / laptop), 1100px and 1200px (desktop).

   Quick re-colouring: change the --fp-* tokens right below.
   Quick font swap:    change --fp-font-display / --fp-font-body.
   ========================================================================== */

/* ---- tokens -------------------------------------------------------------- */
.fp {
  --fp-bg: #FFFFFF;
  --fp-bg-alt: #F5F9F1;
  --fp-surface: #FFFFFF;
  --fp-tint: #EEF6E5;
  --fp-line: #DDE7D3;
  --fp-text: #1B2530;
  --fp-muted: #4A5A52;
  --fp-dim: #66756D;
  --fp-green: #3F7A0F;        /* text / icons on white */
  --fp-green-600: #2F6A08;
  --fp-green-500: #4F8F15;
  --fp-green-400: #6BAA22;
  --fp-grad: linear-gradient(135deg, #4A8714, #6BAA22);
  --fp-grad-text: linear-gradient(90deg, #3F7A0F, #68A722);
  --fp-shadow-card: 0 1px 2px rgba(27, 37, 48, 0.04), 0 12px 32px rgba(27, 37, 48, 0.06);
  --fp-radius-lg: 28px;
  --fp-radius-md: 22px;
  --fp-font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fp-font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fp-scroll-offset: 96px; /* PublicWeb sticky .site-header */

  position: relative;
  display: block;
  background: var(--fp-bg);
  color: var(--fp-text);
  font-family: var(--fp-font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* only used by the standalone index.html */
.fp-body { margin: 0; background: #FFFFFF; }

.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
.fp :where(img) { display: block; max-width: 100%; height: auto; }
.fp :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.fp :where(ul, ol) { list-style: none; }
.fp :where(a) { color: var(--fp-green); }
.fp button { font: inherit; }

.fp :focus-visible {
  outline: 3px solid var(--fp-green-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- layout helpers ------------------------------------------------------ */
.fp-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  position: relative;
}
.fp-container--narrow { max-width: 860px; }

.fp-section {
  position: relative;
  padding-block: clamp(56px, 9vw, 112px);
  scroll-margin-top: var(--fp-scroll-offset);
}
.fp-section--alt {
  background: var(--fp-bg-alt);
  border-block: 1px solid #E8F0E0;
}

.fp-section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.fp-section__head--center { margin-inline: auto; text-align: center; }

/* ---- typography ---------------------------------------------------------- */
.fp-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--fp-tint);
  border: 1px solid #D3E5BE;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fp-green);
}
.fp-h1, .fp-h2, .fp-h3 {
  font-family: var(--fp-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fp-text);
}
.fp-h1 {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.fp-h2 {
  font-size: clamp(1.875rem, 1.1rem + 3vw, 3rem);
  line-height: 1.14;
}
.fp-h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.fp-h3--lg { font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.125rem); font-weight: 700; }
.fp-lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--fp-muted);
}
.fp-sub {
  margin-top: 16px;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  color: var(--fp-muted);
}
.fp-section__head--center .fp-sub { margin-inline: auto; }
.fp-gradient-text {
  background: var(--fp-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- icons --------------------------------------------------------------- */
.fp-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- buttons / links ----------------------------------------------------- */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fp-btn--primary {
  background: var(--fp-grad);
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(79, 143, 21, 0.32);
}
.fp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(79, 143, 21, 0.42); color: #FFFFFF; }
.fp-btn--primary:active { transform: translateY(0); }
.fp-btn--light {
  background: #FFFFFF;
  color: var(--fp-green-600);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.fp-btn--light:hover { transform: translateY(-2px); color: var(--fp-green-600); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
.fp-btn .fp-icon { stroke-width: 2.2; }

.fp-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--fp-text);
  text-decoration: underline;
  text-decoration-color: var(--fp-green-400);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.fp-link:hover { color: var(--fp-green); }

/* ---- glow blobs ---------------------------------------------------------- */
.fp-glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.fp-glow--mint {
  width: min(760px, 120vw); aspect-ratio: 1;
  left: -22%; top: -34%;
  background: radial-gradient(closest-side, rgba(125, 187, 47, 0.18), rgba(125, 187, 47, 0));
}
.fp-glow--purple {
  width: min(680px, 120vw); aspect-ratio: 1;
  right: -20%; top: -2%;
  background: radial-gradient(closest-side, rgba(94, 200, 150, 0.16), rgba(94, 200, 150, 0));
}
.fp-glow--small.fp-glow--mint { width: 520px; left: -140px; top: -180px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)); }
.fp-glow--small.fp-glow--purple { width: 560px; right: -140px; top: auto; bottom: -220px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)); }

/* ---- hero ---------------------------------------------------------------- */
.fp-hero {
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px);
  background: linear-gradient(180deg, #F6FAF2 0%, #FFFFFF 100%);
}
.fp-hero__grid {
  display: grid;
  gap: clamp(40px, 7vw, 64px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.fp-hero__copy { position: relative; z-index: 1; }

.fp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 16px 6px 6px;
  background: var(--fp-tint);
  border: 1px solid #D3E5BE;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-green);
}
.fp-eyebrow__icon { width: 32px; height: 32px; border-radius: 9px; }

.fp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 36px;
}
.fp-actions .fp-btn { width: 100%; }

.fp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.fp-chips li {
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fp-muted);
  box-shadow: 0 1px 2px rgba(27, 37, 48, 0.04);
}

.fp-hero__visual { position: relative; z-index: 1; }
.fp-stack {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 460 / 600;
  margin-inline: auto;
}
.fp-stack::before {
  content: "";
  position: absolute;
  inset: 4% -6% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125, 187, 47, 0.28), rgba(125, 187, 47, 0));
  pointer-events: none;
}
.fp-stack__phone {
  position: absolute;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 100%);
  mask-image: linear-gradient(#000 80%, transparent 100%);
}
.fp-stack__phone img { width: 100%; height: auto; }
.fp-stack__phone--front { left: 2%; top: 0; width: 54%; height: 100%; z-index: 2; }
.fp-stack__phone--back {
  right: 0; top: 14%; width: 49%; height: 86%;
  z-index: 1;
  transform: rotate(6deg);
  transform-origin: bottom center;
  animation: fp-float 7s ease-in-out infinite;
}
@keyframes fp-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---- feature cards ------------------------------------------------------- */
.fp-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.fp-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--fp-surface);
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-card);
  color: var(--fp-muted);
  font-size: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 143, 21, 0.5);
  box-shadow: 0 18px 40px rgba(63, 122, 15, 0.14);
}
.fp-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  background: var(--fp-tint);
  border: 1px solid #D3E5BE;
  border-radius: 16px;
  color: var(--fp-green);
}

/* ---- screens showcase ---------------------------------------------------- */
.fp-tabs { display: none; }
.fp-js .fp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto clamp(28px, 5vw, 48px);
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid var(--fp-line);
  border-radius: 24px;
  box-shadow: var(--fp-shadow-card);
  box-sizing: border-box;
}
.fp-tab {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--fp-dim);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fp-tab:hover { color: var(--fp-green); }
.fp-tab.is-active { background: var(--fp-green); color: #FFFFFF; }

.fp-panel {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.fp-panel + .fp-panel { margin-top: clamp(48px, 8vw, 96px); }
.fp-js .fp-panel { margin-top: 0; }
.fp-js .fp-panel:not(.is-active) { display: none; }
.fp-js .fp-panel.is-active { animation: fp-fade 0.45s ease both; }
@keyframes fp-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.fp-stage {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 48px) 16px;
  background:
    radial-gradient(closest-side at 25% 20%, rgba(125, 187, 47, 0.3), rgba(125, 187, 47, 0)),
    radial-gradient(closest-side at 80% 88%, rgba(79, 143, 21, 0.18), rgba(79, 143, 21, 0)),
    #EEF6E5;
  border: 1px solid #DCE9CE;
  border-radius: var(--fp-radius-lg);
}
.fp-shot {
  width: min(100%, var(--fp-shot-w, 260px));
  filter: drop-shadow(0 26px 30px rgba(27, 37, 48, 0.3));
}
.fp-shot img { width: 100%; height: auto; }
.fp-shot--tall {
  max-height: 620px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 82%, transparent 100%);
  mask-image: linear-gradient(#000 82%, transparent 100%);
}

.fp-panel__copy p { color: var(--fp-muted); font-size: 1.0625rem; max-width: 34rem; }
.fp-checks { display: grid; gap: 12px; margin-top: 24px; }
.fp-checks li {
  position: relative;
  padding-left: 36px;
  color: var(--fp-text);
  font-weight: 500;
}
.fp-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fp-green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---- how it works -------------------------------------------------------- */
.fp-steps { display: grid; gap: 16px; counter-reset: fp-step; grid-template-columns: minmax(0, 1fr); }
.fp-step {
  counter-increment: fp-step;
  padding: clamp(24px, 3vw, 34px);
  background: var(--fp-surface);
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-card);
  color: var(--fp-muted);
  font-size: 1rem;
}
.fp-step::before {
  content: counter(fp-step);
  display: block;
  margin-bottom: 8px;
  font-family: var(--fp-font-display);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.1;
  background: var(--fp-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- FAQ ----------------------------------------------------------------- */
.fp-faq { display: grid; gap: 12px; }
.fp-faq__item {
  background: #FFFFFF;
  border: 1px solid var(--fp-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(27, 37, 48, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fp-faq__item[open] { border-color: rgba(79, 143, 21, 0.55); box-shadow: var(--fp-shadow-card); }
.fp-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--fp-text);
  cursor: pointer;
  list-style: none;
}
.fp-faq__item summary::-webkit-details-marker { display: none; }
.fp-faq__item summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: var(--fp-green-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.fp-faq__item[open] summary::after { transform: rotate(45deg); }
.fp-faq__item p { padding: 0 24px 22px; color: var(--fp-muted); font-size: 1rem; }

/* ---- final CTA ----------------------------------------------------------- */
.fp-cta { padding-top: clamp(24px, 4vw, 48px); }
.fp-cta__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 48px);
  background: linear-gradient(135deg, #2B6008 0%, #3F7A0F 55%, #55941A 100%);
  border-radius: clamp(28px, 4vw, 40px);
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(47, 106, 8, 0.28);
}
.fp-cta__card > * { position: relative; z-index: 1; }
.fp-cta__card > .fp-glow { position: absolute; z-index: 0; }
.fp-cta__icon { width: 80px; height: 80px; border-radius: 22px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.fp-cta__card .fp-h2 { max-width: 16em; color: #FFFFFF; }
.fp-cta__card .fp-sub { max-width: 32rem; margin-bottom: 36px; color: #EAF5DD; }

/* ---- scroll reveal (only when JS is on) ---------------------------------- */
.fp-js .fp [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fp-js .fp [data-reveal].is-visible { opacity: 1; transform: none; }
.fp-js .fp [data-reveal-delay="1"] { transition-delay: 0.08s; }
.fp-js .fp [data-reveal-delay="2"] { transition-delay: 0.16s; }

/* ---- breakpoints --------------------------------------------------------- */
@media (min-width: 640px) {
  .fp-actions .fp-btn { width: auto; }
  .fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .fp-js .fp-tabs {
    flex-wrap: nowrap;
    width: fit-content;
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .fp-js .fp-tabs::-webkit-scrollbar { display: none; }
  .fp-tab {
    flex: none;
    padding: 0 26px;
    font-size: 1rem;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (min-width: 900px) {
  .fp-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .fp-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .fp-stage { min-height: 560px; }
}

@media (min-width: 1100px) {
  .fp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .fp-container { padding-inline: 32px; }
}

/* very small phones */
@media (max-width: 380px) {
  .fp-eyebrow { font-size: 0.75rem; }
  .fp-btn { padding: 0 22px; font-size: 1.0625rem; }
  .fp-faq__item summary { padding-inline: 18px; font-size: 1rem; }
  .fp-faq__item p { padding-inline: 18px; }
}

/* ---- accessibility ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fp *, .fp *::before, .fp *::after {
    animation: none !important;
    transition: none !important;
  }
  .fp-js .fp [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .fp-glow, .fp-tabs { display: none !important; }
  .fp-js .fp-panel:not(.is-active) { display: grid; }
}
