/* ============================================================
   Components — reusable UI pieces used across sections:
   nav, pills, the sign-up form, buttons, phone mockups,
   info cards, and the sticky mobile CTA.
   ============================================================ */

/* ── Nav ─────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 251, 240, 0.72);
  border-bottom: 1px solid rgba(58,36,16,0.06);
}
nav .inner { max-width: 1180px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; }
.navbrand { display: flex; align-items: center; gap: 9px; }
.navbrand .logo { width: 42px; height: 42px; background: center / contain no-repeat url("../assets/growly-logo.png"); }
.navbrand .name { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--orange); letter-spacing: -0.5px; }
.navcta {
  font-family: var(--display); font-weight: 700; font-size: 14.5px; color: #fff;
  background: var(--grad); border: none; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(233,122,31,0.30); transition: transform .12s ease, box-shadow .2s ease;
}
.navcta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(233,122,31,0.36); }

/* ── Pill label ──────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--green);
  background: #fff; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(143,189,61,0.18); border: 1px solid rgba(143,189,61,0.18);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(143,189,61,0.2); }

/* ── Sign-up form ────────────────────────── */
form { display: flex; gap: 10px; max-width: 470px; }
.field {
  flex: 1; display: flex; align-items: center; gap: 11px; min-width: 0;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  border: 2px solid #fff; border-radius: 22px; padding: 0 18px;
  box-shadow: 0 10px 30px rgba(180,110,40,0.10); transition: border-color .18s ease, box-shadow .18s ease;
}
.field:focus-within { border-color: var(--orange); box-shadow: 0 10px 30px rgba(233,122,31,0.22); }
.field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.field input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: var(--body); font-weight: 600; font-size: 16px; color: var(--text); padding: 16px 0;
}
.field input::placeholder { color: var(--muted); opacity: 0.65; font-weight: 500; }
button.join {
  flex-shrink: 0; border: none; cursor: pointer; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  background: var(--grad); border-radius: 22px; padding: 0 30px;
  box-shadow: 0 10px 24px rgba(233,122,31,0.34); transition: transform .1s ease, box-shadow .2s ease;
}
button.join:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(233,122,31,0.4); }
button.join:active { transform: translateY(0) scale(0.98); }
.reassure { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.reassure span { display: inline-flex; align-items: center; gap: 6px; }
.reassure svg { width: 16px; height: 16px; color: var(--green); }
.error { color: var(--orange-deep); font-size: 14.5px; font-weight: 700; margin: 12px 0 0; min-height: 18px; }

/* Success state (shown after sign-up) */
.success { display: none; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 470px; }
.success.show { display: flex; }
.form-wrap.hide { display: none; }
.success .badge { width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.success .badge svg { width: 30px; height: 30px; }
.success h2 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 0; letter-spacing: -0.5px; }
.success p { margin: 0; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.5; }
.reset-link { background: none; border: none; cursor: pointer; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--orange); text-decoration: underline; text-underline-offset: 3px; padding: 2px; }
.reset-link:hover { color: var(--orange-deep); }

/* ── Hero phone mockup ───────────────────── */
.hero-art { position: relative; justify-self: center; }
.glow { position: absolute; inset: -8% -6% -14% -6%; background: radial-gradient(ellipse at 50% 45%, rgba(239,140,46,0.30), transparent 68%); filter: blur(8px); z-index: 0; }
.phone {
  position: relative; z-index: 1; width: 268px; height: 572px; background: #221b12;
  border-radius: 38px; padding: 5px; box-shadow: 0 36px 70px rgba(150,90,30,0.30), 0 0 0 1px rgba(0,0,0,0.05);
  animation: float 6.5s ease-in-out infinite;
}
.phone.tilt { transform: rotate(3deg); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: var(--sun); display: flex; flex-direction: column; }
/* Real app screenshots (already include status bar + notch + home bar) */
.screen-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ── Swipe hint (mobile mockup rail) ─────── */
.swipe-hint { display: none; align-items: center; justify-content: center; gap: 7px; margin: 18px auto 0; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--muted); }
.swipe-hint svg { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0) } 50% { transform: translateX(5px) } }

/* ── Mockup phones (in-app screens) ──────── */
.mphone { position: relative; width: 236px; height: 503px; background: #221b12; border-radius: 34px; padding: 5px; box-shadow: 0 26px 56px rgba(150,90,30,0.22), 0 0 0 1px rgba(0,0,0,0.05); flex-shrink: 0; transition: transform .3s ease; }
.mphone:hover { transform: translateY(-8px); }
.mphone.lift { transform: translateY(-26px); }
.mphone.lift:hover { transform: translateY(-34px); }
.mscreen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--sun); display: flex; flex-direction: column; }

/* ── Info card ───────────────────────────── */
.card {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(10px);
  border: 1.5px solid #fff; border-radius: 28px; padding: 32px 28px;
  box-shadow: 0 18px 44px rgba(150,90,30,0.10); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(150,90,30,0.16); }
.card .ic { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; }
.card .ic.o { background: var(--grad); box-shadow: 0 10px 22px rgba(233,122,31,0.3); }
.card .ic.g { background: linear-gradient(135deg, #A6CE54, #7FAE2E); box-shadow: 0 10px 22px rgba(143,189,61,0.3); }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0 0 8px; letter-spacing: -0.4px; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); font-weight: 500; }

/* ── Sticky mobile CTA (thumb zone) ──────── */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 251, 240, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(58,36,16,0.08);
  box-shadow: 0 -8px 26px rgba(150,90,30,0.10);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; box-sizing: border-box;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff;
  background: var(--grad); border-radius: 18px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(233,122,31,0.34);
}
.mobile-cta a svg { width: 18px; height: 18px; }
.mobile-cta.hide { display: none !important; }
