/* ============================================================
   FRUIT PICKIN' A.I. — site stylesheet
   Brand tokens lifted from the brand identity sheet.
   ============================================================ */

:root {
  /* Palette */
  --fpai-sunbelt:  #F7C948;
  --fpai-coral:    #FF6B5C;
  --fpai-grove:    #2D6A4F;
  --fpai-sky:      #0E7490;
  --fpai-cream:    #FAF3E0;
  --fpai-ink:      #1F1A17;
  --fpai-ink-soft: #5A5048;
  --fpai-rule:     #D9CFB8;
  --fpai-white:    #FFFFFF;

  /* Type */
  --fpai-font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --fpai-font-mono:    'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
  --fpai-font-pixel:   'Pixelify Sans', 'Courier New', monospace;
  --fpai-font-body:    'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --fpai-font-hand:    'Nothing You Could Do', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--fpai-cream);
  color: var(--fpai-ink);
  font-family: var(--fpai-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--fpai-sky); }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px 80px;
}

/* ============================================================
   Intro splash — full-screen logo reveal on first visit
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  background: var(--fpai-cream);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Cream stage lingers a beat after the logo whooshes, then fades */
  transition: opacity 0.45s ease 0.18s, visibility 0.45s ease 0.18s;
}
.intro__stage {
  padding: 24px;
  /* Strong ease-in so the logo accelerates as it leaves the screen */
  transition: transform 0.45s cubic-bezier(0.55, 0, 0.95, 0.4);
  will-change: transform;
}
.intro--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro--done .intro__stage {
  transform: translateX(115vw) rotate(8deg);
}

/* Splash logo runs slightly larger than the inline header version */
.fpai-logo--intro { --fpai-logo-scale: 1.5; }

/* Word lines fade up */
.intro-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: introFadeUp 0.5s ease var(--d, 0s) forwards;
}
@keyframes introFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* The yellow A.I. badge pops in with a subtle bounce */
.intro-pop {
  opacity: 0;
  transform: scale(0.55);
  transform-origin: 30% 50%;
  animation: introPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s) forwards;
}
@keyframes introPop {
  to { opacity: 1; transform: scale(1); }
}

/* The lemon flies in from the upper-right, spinning, with overshoot */
.intro-lemon {
  opacity: 0;
  transform: translate(140px, -120px) scale(0) rotate(-720deg);
  animation: introLemonFly 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) 1.05s forwards;
}
@keyframes introLemonFly {
  0%   { opacity: 0; transform: translate(140px, -120px) scale(0) rotate(-720deg); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
}

/* Respect users who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* Smaller logo on tiny viewports so the splash never overflows */
@media (max-width: 540px) {
  .fpai-logo--intro { --fpai-logo-scale: 0.95; }
  .intro-lemon {
    transform: translate(80px, -70px) scale(0) rotate(-720deg);
  }
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  background: var(--fpai-ink);
  color: var(--fpai-cream);
  padding: 12px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--fpai-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar__left { display: flex; gap: 18px; align-items: center; }
.topbar__version { color: var(--fpai-sunbelt); }

/* ============================================================
   Section labels
   ============================================================ */
.section { margin-top: 72px; }
.section__label {
  font-family: var(--fpai-font-mono);
  font-size: 11px;
  color: var(--fpai-ink-soft);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--fpai-rule);
  padding-bottom: 8px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

/* ============================================================
   LOGO LOCKUP COMPONENT  (from brand sheet)
   ============================================================ */
.fpai-logo {
  display: inline-block;
  color: var(--fpai-ink);
  line-height: 1;
  --fpai-logo-scale: 1;
}
.fpai-logo__line {
  display: block;
  font-family: var(--fpai-font-display);
  font-size: calc(64px * var(--fpai-logo-scale));
  line-height: 0.92;
  color: var(--fpai-ink);
}
.fpai-logo__by {
  font-family: var(--fpai-font-mono);
  font-weight: 400;
  font-size: calc(22px * var(--fpai-logo-scale));
  color: var(--fpai-ink-soft);
  margin-left: calc(2px * var(--fpai-logo-scale));
  vertical-align: baseline;
}
.fpai-logo__ai {
  display: inline-flex;
  align-items: center;
  gap: calc(14px * var(--fpai-logo-scale));
  background: var(--fpai-sunbelt);
  border-radius: calc(12px * var(--fpai-logo-scale));
  padding:
    calc(14px * var(--fpai-logo-scale))
    calc(20px * var(--fpai-logo-scale))
    calc(14px * var(--fpai-logo-scale))
    calc(10px * var(--fpai-logo-scale));
  margin-top: calc(14px * var(--fpai-logo-scale));
}
.fpai-logo__ai-text {
  font-family: var(--fpai-font-pixel);
  font-weight: 500;
  font-size: calc(62px * var(--fpai-logo-scale));
  color: var(--fpai-white);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.fpai-logo__lemon {
  width: calc(48px * var(--fpai-logo-scale));
  height: calc(48px * var(--fpai-logo-scale));
  flex-shrink: 0;
}
.fpai-logo__sub {
  display: block;
  font-family: var(--fpai-font-mono);
  font-size: calc(15px * var(--fpai-logo-scale));
  color: var(--fpai-ink-soft);
  margin-top: calc(14px * var(--fpai-logo-scale));
  letter-spacing: 0.02em;
}
.fpai-logo--sm { --fpai-logo-scale: 0.45; }
.fpai-logo--xs { --fpai-logo-scale: 0.25; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: 72px;
  padding-bottom: 24px;
}
.hero__tagline {
  font-family: var(--fpai-font-display);
  font-size: 28px;
  color: var(--fpai-ink);
  margin-top: 32px;
  margin-bottom: 0;
  line-height: 1.2;
}
.hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero__rule {
  margin-top: 40px;
  border: none;
  border-top: 1px solid var(--fpai-grove);
  position: relative;
}
.hero__rule::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -5px;
  width: 9px;
  height: 9px;
  background: var(--fpai-sunbelt);
  border-radius: 50%;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fpai-font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--fpai-ink);
  color: var(--fpai-sunbelt);
  border-color: var(--fpai-ink);
}
.btn--primary:hover { background: var(--fpai-grove); border-color: var(--fpai-grove); }

.btn--ghost {
  background: transparent;
  color: var(--fpai-ink);
  border-color: var(--fpai-ink);
}
.btn--ghost:hover { background: var(--fpai-ink); color: var(--fpai-cream); }

/* ============================================================
   Give-back strip (10% to San Diego Food Bank)
   ============================================================ */
.giveback {
  margin-top: 56px;
  background: var(--fpai-grove);
  color: var(--fpai-cream);
  border-radius: 12px;
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
}
.giveback::before {
  /* a small sunbelt-yellow seed dot in the corner, echoing the hero rule */
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fpai-sunbelt);
}
.giveback__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.giveback__heading {
  font-family: var(--fpai-font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--fpai-sunbelt);
  white-space: nowrap;
}
.giveback__body {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: var(--fpai-cream);
}
.giveback__body a {
  color: var(--fpai-sunbelt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.giveback__body a:hover { color: var(--fpai-white); }

@media (max-width: 640px) {
  .giveback { padding: 24px 22px; }
  .giveback__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .giveback__heading { font-size: 24px; }
}

/* ============================================================
   How it works — steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--fpai-white);
  border: 1px solid var(--fpai-rule);
  border-radius: 10px;
  padding: 28px 24px;
}
.step__num {
  font-family: var(--fpai-font-pixel);
  font-weight: 500;
  font-size: 38px;
  color: var(--fpai-white);
  background: var(--fpai-sunbelt);
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.step__title {
  font-family: var(--fpai-font-display);
  font-size: 28px;
  margin: 16px 0 8px;
  line-height: 1;
}
.step__body {
  font-size: 15px;
  color: var(--fpai-ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Services
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  background: var(--fpai-white);
  border: 1px solid var(--fpai-rule);
  border-radius: 10px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.service--featured {
  background: var(--fpai-ink);
  color: var(--fpai-cream);
  border-color: var(--fpai-ink);
}
.service--featured .service__title { color: var(--fpai-sunbelt); }
.service--featured .service__price { color: var(--fpai-cream); }
.service--featured .service__body  { color: var(--fpai-cream); }
.service--featured .service__list  { color: var(--fpai-cream); }

.service__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.service__title {
  font-family: var(--fpai-font-display);
  font-size: 28px;
  margin: 0;
  line-height: 1;
}
.service__price {
  font-family: var(--fpai-font-pixel);
  font-weight: 500;
  font-size: 20px;
  color: var(--fpai-coral);
  white-space: nowrap;
}
.service__body {
  font-size: 14px;
  color: var(--fpai-ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}
.service__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--fpai-ink-soft);
  line-height: 1.7;
}

/* Highlight placeholder pricing so it's obvious what to edit */
.price-edit {
  background: var(--fpai-sunbelt);
  color: var(--fpai-ink);
  padding: 0 6px;
  border-radius: 4px;
}
.service--featured .price-edit { color: var(--fpai-ink); }

/* ============================================================
   Form
   ============================================================ */
.form-wrap {
  background: var(--fpai-white);
  border: 1px solid var(--fpai-rule);
  border-radius: 12px;
  padding: 32px;
}
.form-intro {
  font-family: var(--fpai-font-display);
  font-size: 22px;
  margin: 0 0 24px;
  color: var(--fpai-ink);
  line-height: 1.3;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field--span-1 { grid-column: span 1; }
.field--span-2 { grid-column: span 2; }

.field__label {
  font-family: var(--fpai-font-mono);
  font-size: 11px;
  color: var(--fpai-ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  font-family: var(--fpai-font-body);
  font-size: 15px;
  color: var(--fpai-ink);
  background: var(--fpai-cream);
  border: 1px solid var(--fpai-rule);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fpai-grove);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }

.field--checks { gap: 10px; }
.field--checks .field__label { margin-bottom: 4px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-right: 18px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--fpai-grove); }

.form__hp { position: absolute; left: -9999px; }

.form__actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form__fineprint {
  font-family: var(--fpai-font-mono);
  font-size: 11px;
  color: var(--fpai-ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Thanks page bits (used by thanks.html)
   ============================================================ */
.thanks {
  text-align: center;
  padding: 96px 0;
}
.thanks__hand {
  font-family: var(--fpai-font-hand);
  font-size: 56px;
  color: var(--fpai-grove);
  line-height: 1;
  margin-bottom: 18px;
}
.thanks__heading {
  font-family: var(--fpai-font-display);
  font-size: 56px;
  margin: 0 0 16px;
  line-height: 1;
}
.thanks__body {
  font-size: 17px;
  color: var(--fpai-ink-soft);
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.6;
}
.thanks__givenote {
  font-family: var(--fpai-font-mono);
  font-size: 13px;
  color: var(--fpai-grove);
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.thanks__givenote a {
  color: var(--fpai-grove);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Footer
   ============================================================ */
.pagefoot {
  margin-top: 80px;
  padding-top: 18px;
  border-top: 1px solid var(--fpai-rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--fpai-font-mono);
  font-size: 10px;
  color: var(--fpai-ink-soft);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  gap: 16px;
  flex-wrap: wrap;
}
.pagefoot a {
  color: var(--fpai-grove);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .page { padding: 0 24px 60px; }
  .topbar { padding: 12px 24px; gap: 10px; flex-wrap: wrap; }

  .fpai-logo { --fpai-logo-scale: 0.75; }
  .hero { padding-top: 48px; }
  .hero__tagline { font-size: 22px; }

  .steps,
  .services { grid-template-columns: 1fr; }

  .form-wrap { padding: 22px; }
  .form__grid { grid-template-columns: 1fr; }
  .field--span-1, .field--span-2 { grid-column: span 1; }

  .thanks__heading { font-size: 40px; }
}

@media (max-width: 480px) {
  .fpai-logo { --fpai-logo-scale: 0.6; }
}
