/* ============================================================
   FIELD NOTES 01 — Landing page + homepage strip
   Extends main.css. Colors, fonts, spacing follow ABLP system.
   ============================================================ */

/* -- Screen-reader only utility (if not already defined) -- */
.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;
}

/* ============================================================
   HOMEPAGE STRIP — thin cobalt bar pinned above the fixed header
   Site header is position:fixed; top:0. We pin the strip to top:0
   with a higher z-index and push the header down via body padding
   so the strip sits above and the hero flows underneath cleanly.
   ============================================================ */
:root {
  --fn-strip-h: 40px;
}
@media (max-width: 640px) {
  :root { --fn-strip-h: 44px; }
}

/* Push the fixed site-header down by the strip height so both are visible */
body:has(> .field-notes-strip) .site-header {
  top: var(--fn-strip-h);
}
/* Fallback for browsers without :has() — apply via class on body if needed */
body.has-fn-strip .site-header { top: var(--fn-strip-h); }

.field-notes-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--fn-strip-h);
  z-index: 200;
  background: #0E65F8;
  color: #F7F5F0;
  text-align: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 0 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 200ms ease;
  line-height: 1.2;
}
.field-notes-strip:hover {
  background: #0857DA;
  color: #FFFFFF;
}
.field-notes-strip strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.field-notes-strip .fn-strip-arrow {
  display: inline-block;
  transition: transform 200ms ease;
  font-weight: 500;
}
.field-notes-strip:hover .fn-strip-arrow {
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .field-notes-strip {
    font-size: 12.5px;
    padding: 0 14px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.fn-hero {
  background: #191614;
  color: #F7F5F0;
  padding: 88px 20px 72px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.08);
}
.fn-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.fn-eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.72);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(247, 245, 240, 0.24);
  border-radius: 999px;
}
.fn-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #F7F5F0;
}
.fn-title .cobalt {
  color: #4B90FF;
}
.fn-sub {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.82);
  max-width: 560px;
  margin: 0 auto 40px;
}
@media (max-width: 640px) {
  .fn-hero {
    padding: 60px 20px 56px;
  }
  .fn-sub {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .hide-mobile {
    display: none;
  }
}

/* ============================================================
   FORM (light on dark hero + dark on dark final CTA)
   ============================================================ */
.fn-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}
.fn-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 16px 18px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #191614;
  background: #F7F5F0;
  border: 1px solid rgba(247, 245, 240, 0.35);
  border-radius: 8px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.fn-input::placeholder {
  color: rgba(25, 22, 20, 0.5);
}
.fn-input:focus {
  border-color: #0E65F8;
  box-shadow: 0 0 0 3px rgba(14, 101, 248, 0.28);
}
.fn-submit {
  flex: 0 0 auto;
  padding: 16px 24px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: #0E65F8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
  letter-spacing: -0.01em;
}
.fn-submit:hover {
  background: #0857DA;
  transform: translateY(-1px);
}
.fn-submit:active {
  transform: translateY(0);
}
@media (max-width: 520px) {
  .fn-form {
    flex-direction: column;
    gap: 8px;
  }
  .fn-input,
  .fn-submit {
    width: 100%;
  }
}

.fn-privacy {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(247, 245, 240, 0.55);
  margin: 12px 0 0;
}
.fn-privacy-dark {
  color: rgba(247, 245, 240, 0.55);
}

/* ============================================================
   PROOF BAND
   ============================================================ */
.fn-proof {
  background: #F7F5F0;
  color: #191614;
  padding: 56px 20px;
  border-bottom: 1px solid rgba(25, 22, 20, 0.08);
}
.fn-proof-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.fn-proof-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(25, 22, 20, 0.6);
  margin-bottom: 28px;
}
.fn-proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 24px;
}
.fn-proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  border-left: 3px solid #0E65F8;
  background: #FFFFFF;
  border-radius: 4px;
}
.fn-proof-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1;
  color: #191614;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.fn-proof-label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(25, 22, 20, 0.68);
  letter-spacing: 0.02em;
}
.fn-proof-caption {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(25, 22, 20, 0.72);
  font-style: normal;
  margin: 0;
  padding-top: 4px;
}
@media (max-width: 640px) {
  .fn-proof-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 320px;
  }
  .fn-proof-stat {
    padding: 16px 12px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .fn-proof-num {
    margin-bottom: 0;
  }
}

/* ============================================================
   3 SHIFTS
   ============================================================ */
.fn-shifts {
  background: #FFFFFF;
  color: #191614;
  padding: 80px 20px;
}
.fn-shifts-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  color: #191614;
  text-align: center;
  margin: 0 0 48px;
}
.fn-shifts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.fn-shift {
  background: #F7F5F0;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid rgba(25, 22, 20, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.fn-shift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(25, 22, 20, 0.08);
}
.fn-shift-num {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0E65F8;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.fn-shift-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #191614;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.25;
}
.fn-shift-body {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(25, 22, 20, 0.78);
  margin: 0;
}
@media (max-width: 900px) {
  .fn-shifts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 520px;
  }
  .fn-shifts {
    padding: 60px 20px;
  }
}

/* ============================================================
   FINAL CTA (dark bg — same as hero)
   ============================================================ */
.fn-final-cta {
  background: #191614;
  color: #F7F5F0;
  padding: 80px 20px 88px;
  text-align: center;
}
.fn-final-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.fn-final-cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  color: #F7F5F0;
  margin: 0 0 16px;
  line-height: 1.1;
}
.fn-final-cta p {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  color: rgba(247, 245, 240, 0.78);
  margin: 0 0 32px;
  line-height: 1.55;
}
.fn-upsell {
  margin-top: 56px;
  padding: 28px 24px;
  background: rgba(247, 245, 240, 0.05);
  border: 1px solid rgba(247, 245, 240, 0.12);
  border-radius: 12px;
}
.fn-upsell-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.6);
  margin: 0 0 10px !important;
}
.fn-upsell-body {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.9) !important;
  margin: 0 !important;
}
.fn-upsell-body a {
  color: #4B90FF;
  text-decoration: none;
  border-bottom: 1px solid rgba(75, 144, 255, 0.4);
  transition: border-color 180ms ease;
}
.fn-upsell-body a:hover {
  border-bottom-color: #4B90FF;
}

/* ============================================================
   IN-PAGE SUCCESS CARD (replaces form after submit)
   ============================================================ */
.fn-success {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px;
  background: rgba(75, 144, 255, 0.08);
  border: 1px solid rgba(75, 144, 255, 0.32);
  border-radius: 12px;
  text-align: center;
  animation: fnFadeIn 400ms ease;
}
@keyframes fnFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fn-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #4B90FF;
  margin-bottom: 16px;
}
.fn-success-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F7F5F0;
  margin: 0 0 12px;
}
.fn-success-body {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.85);
  margin: 0 0 16px;
}
.fn-success-tip {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(247, 245, 240, 0.6);
  margin: 0;
}
.fn-success-tip strong {
  color: rgba(247, 245, 240, 0.85);
  font-weight: 500;
}

/* Success card in light contexts (proof band, etc.) — currently n/a
   but future-proofed. */
.fn-proof .fn-success,
.fn-shifts .fn-success {
  background: rgba(14, 101, 248, 0.06);
  border-color: rgba(14, 101, 248, 0.28);
}
.fn-proof .fn-success-title,
.fn-shifts .fn-success-title {
  color: #191614;
}
.fn-proof .fn-success-body,
.fn-shifts .fn-success-body {
  color: rgba(25, 22, 20, 0.78);
}
.fn-proof .fn-success-tip,
.fn-shifts .fn-success-tip {
  color: rgba(25, 22, 20, 0.6);
}
.fn-proof .fn-success-tip strong,
.fn-shifts .fn-success-tip strong {
  color: #191614;
}

/* Error message shown inside the form on network failure */
.fn-form-error {
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 14px;
  background: rgba(220, 60, 90, 0.1);
  border: 1px solid rgba(220, 60, 90, 0.35);
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #F7F5F0;
  text-align: left;
}
.fn-form-error a {
  color: #FF8FA6;
  text-decoration: underline;
}

.fn-privacy a { color: var(--cobalt, #0E65F8); font-weight: 500; }
.fn-privacy-dark a { color: #7FB1FF; }
.fn-privacy a:hover { text-decoration: underline; }
