/* ============================================================
   Village Landing Page — styles.css
   Brand: Outfit font, Coral #E57373, Slate Blue #5F9EA0
   ============================================================ */

/* --- CSS Custom Properties --------------------------------- */
:root {
  --color-coral:        #E57373;
  --color-coral-dark:   #C62828;
  --color-coral-mid:    #EF9A9A;
  --color-coral-light:  #FFEBEE;
  --color-slate:        #5F9EA0;
  --color-slate-dark:   #37474F;
  --color-slate-light:  #E0F2F1;
  --color-green:        #81C784;
  --color-yellow:       #FFD54F;
  --color-text:         #37474F;
  --color-text-muted:   #607D8B;
  --color-bg:           #FAFAFA;
  --color-white:        #FFFFFF;
  --color-grey-light:   #EEEEEE;
  --color-grey-border:  #E0E0E0;

  --font-family:        'Outfit', system-ui, -apple-system, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semi:    600;
  --font-weight-bold:    700;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-card: 0 2px 12px rgba(55, 71, 79, 0.08);
  --shadow-md:   0 4px 24px rgba(55, 71, 79, 0.12);

  --container:   1200px;
  --section-gap: 96px;
  --nav-height:  68px;

  --transition: 200ms ease;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Utilities ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-gap);
}

.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;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-coral);
  background: var(--color-coral-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--color-white);
  background: rgba(255,255,255,0.2);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: var(--font-weight-semi);
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-coral);
  color: var(--color-white);
  border-color: var(--color-coral);
}

.btn--primary:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(229,115,115,0.35);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-coral);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-coral-light);
  border-color: var(--color-coral-light);
  transform: translateY(-1px);
}

.btn--sm {
  font-size: 0.875rem;
  padding: 10px 20px;
}

.btn--full { width: 100%; }

/* --- Inputs ------------------------------------------------ */
.input {
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-grey-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input::placeholder { color: var(--color-text-muted); }

.input:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(229,115,115,0.15);
}

.input.error { border-color: #C62828; }

.textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-grey-border);
  height: var(--nav-height);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.nav__logo:hover { opacity: 0.75; }

.nav__logo-mark {
  color: var(--color-coral);
  font-size: 1rem;
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__links a:not(.btn):hover { color: var(--color-coral); }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-border);
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 250ms ease, opacity 250ms ease;
  pointer-events: none;
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-link {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-grey-light);
}

.nav__mobile-link:last-child { border-bottom: none; }

.nav__mobile-link--cta {
  color: var(--color-coral);
  font-weight: var(--font-weight-semi);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-coral-light) 0%, var(--color-bg) 60%);
  padding-block: 80px 96px;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.hero__bg-pattern span {
  position: absolute;
  border-radius: 50%;
}

.hero__bg-pattern span:nth-child(1) {
  width: 480px;
  height: 480px;
  background: rgba(229, 115, 115, 0.10);
  filter: blur(72px);
  top: -140px;
  right: -100px;
}

.hero__bg-pattern span:nth-child(2) {
  width: 320px;
  height: 320px;
  background: rgba(95, 158, 160, 0.09);
  filter: blur(60px);
  bottom: -80px;
  left: -60px;
}

.hero__bg-pattern span:nth-child(3) {
  width: 220px;
  height: 220px;
  background: rgba(229, 115, 115, 0.07);
  filter: blur(48px);
  top: 35%;
  left: 15%;
}

.hero__bg-pattern span:nth-child(4) {
  width: 180px;
  height: 180px;
  background: rgba(95, 158, 160, 0.06);
  filter: blur(40px);
  top: 8%;
  left: 45%;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semi);
  color: var(--color-slate);
  background: var(--color-slate-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.hero__headline--accent { color: var(--color-coral); }
.hero__br { display: none; }

.hero__sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 520px;
  font-weight: var(--font-weight-medium);
}

.hero__form { width: 100%; max-width: 480px; }

.hero__form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__input {
  border-radius: var(--radius-full);
  padding: 14px 20px;
}

.hero__btn { width: 100%; }

.hero__form-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero__avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-left: -8px;
  background: var(--color-coral-light);
}

.avatar:first-child { margin-left: 0; }

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.problem__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.problem__text { display: flex; flex-direction: column; gap: 20px; }

.problem__text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.problem__text p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 480px;
}

/* App Mockup */
.mockup {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 340px;
  margin-inline: auto;
}

.mockup__header {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-grey-light);
}

.mockup__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-grey-border);
}

.mockup__dot:nth-child(1) { background: #FF5F57; }
.mockup__dot:nth-child(2) { background: #FEBC2E; }
.mockup__dot:nth-child(3) { background: #28C840; }

.mockup__screen {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg);
}

.mockup__card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.mockup__card:hover { transform: translateX(4px); }

.mockup__icon { font-size: 1.5rem; flex-shrink: 0; }

.mockup__card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup__card-text strong {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semi);
  color: var(--color-text);
}

.mockup__card-text small {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--color-white); }

.features__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  max-width: 560px;
}

.features__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-coral-mid);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semi);
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   WAITLIST CTA
   ============================================================ */
.waitlist {
  background: linear-gradient(135deg, var(--color-coral) 0%, #e64a4a 100%);
  color: var(--color-white);
  text-align: center;
}

.waitlist__inner {
  max-width: 600px;
}

.waitlist h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.waitlist p {
  opacity: 0.9;
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 440px;
  margin-inline: auto;
}

.waitlist__input {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border-radius: var(--radius-full);
  padding: 14px 20px;
  width: 100%;
}

.waitlist__input::placeholder { color: rgba(255,255,255,0.65); }
.waitlist__input:focus { border-color: var(--color-white); box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }

.waitlist .btn--white { width: 100%; }

.waitlist__note {
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-bottom: 0;
}

.waitlist__link { text-decoration: underline; opacity: 0.85; }

/* ============================================================
   FOR BUSINESSES
   ============================================================ */
.businesses__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.businesses__text { display: flex; flex-direction: column; gap: 20px; }

.businesses__text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.businesses__text p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.businesses__benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.businesses__benefits li {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

.businesses__form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.businesses__form h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
  color: var(--color-text);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.businesses__gdpr {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.businesses__gdpr a {
  color: var(--color-coral);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-slate-dark);
  color: var(--color-grey-light);
  padding-block: 48px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.footer__logo { color: var(--color-white); }
.footer__logo .nav__logo-mark { color: var(--color-coral-mid); }
.footer__logo .nav__logo-icon { mix-blend-mode: normal; border-radius: 6px; }

.footer__tagline {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__links a {
  font-size: 0.875rem;
  opacity: 0.65;
  transition: opacity var(--transition);
}

.footer__links a:hover { opacity: 1; }

.footer__copy {
  font-size: 0.8125rem;
  opacity: 0.45;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-slate-dark);
  color: var(--color-white);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--success { border-left: 4px solid var(--color-green); }
.toast--error   { border-left: 4px solid var(--color-coral); }

/* ============================================================
   RESPONSIVE — Tablet & Desktop
   ============================================================ */
@media (min-width: 600px) {
  .hero__form-row {
    flex-direction: row;
  }

  .hero__input { border-radius: var(--radius-full); }
  .hero__btn { width: auto; }

  .waitlist__form { flex-direction: row; flex-wrap: wrap; }
  .waitlist .btn--white { width: auto; }
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__hamburger { display: none; }

  .hero__br { display: inline; }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem__grid {
    grid-template-columns: 1fr 1fr;
  }

  .businesses__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
