/* ==========================================================================
   Self-hosted fonts — no request ever leaves for Google. Fraunces (display)
   + Outfit (body) as variable woff2 subsets (latin), served from ./fonts/.
   Both families are variable, so one file per style covers every weight;
   font-optical-sizing: auto works because the opsz axis is in the file.
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 900;      /* used: 500, 600, 700, 900 */
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;          /* used: 600 (.founder .sign) */
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;      /* used: 400, 500, 600, 700 */
  font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
}

/* ==========================================================================
   PorchPop marketing site — v2 "lemonade stand meets modern product launch"
   Static HTML/CSS/JS only. Brand palette is the foundation; gradients & tints
   are derived from it. Motion respects prefers-reduced-motion.
   ========================================================================== */

:root {
  /* --- Brand foundation --- */
  --bg: #F6FBFF;        /* sky-tinted white background */
  --card: #FFFFFF;
  --pale: #DFF1FC;      /* pale sky — tiles, accents */
  --sky: #59B7E8;       /* sky-blue accent */
  --pop: #C13E6E;       /* brand pink (AA text on white) */
  --ink: #26333C;
  --muted: #5C6B7A;
  --border: #C3D9E6;

  /* --- Derived tints / shades --- */
  --pop-deep: #A32F58;
  --pop-soft: #F7DEE9;
  --sky-deep: #2E93CE;  /* AA-safe sky for text/gradient ink */
  --sky-soft: #EAF6FD;

  /* --- Gradients --- */
  --grad-cta: linear-gradient(135deg, #C13E6E 0%, #AE3560 100%);
  --grad-cta-hover: linear-gradient(135deg, #CD4576 0%, #B8386A 100%);
  --grad-ink: linear-gradient(100deg, #C13E6E 0%, #D6487F 45%, #2E93CE 100%);

  /* --- Status --- */
  --open-green: #1F7D45;
  --danger: #A94438;

  /* --- Geometry --- */
  --maxw: 940px;
  --radius: 20px;
  --radius-lg: 28px;

  /* --- Type --- */
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Outfit", Georgia, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  --shadow-sm: 0 2px 8px rgba(34, 80, 107, 0.06);
  --shadow-md: 0 10px 30px rgba(34, 80, 107, 0.10);
  --shadow-lg: 0 26px 60px rgba(34, 80, 107, 0.16);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

a { color: var(--pop); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }

::selection { background: var(--pop-soft); color: var(--pop-deep); }

/* ==========================================================================
   Compact header (legal pages + fallback)
   ========================================================================== */
.site-header {
  padding: 22px 0 6px;
  text-align: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand svg {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(193, 62, 110, 0.20);
}
.wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.wordmark .pop {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pop);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  text-align: center;
  padding: 54px 0 8px;
  overflow: hidden;
  isolation: isolate;
}
/* Soft mesh blobs (pink + sky) drifting slowly behind the hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.75;
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px;
  top: -160px; left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(193, 62, 110, 0.42), rgba(193, 62, 110, 0) 68%);
  animation: drift-a 22s ease-in-out infinite;
}
.hero::after {
  width: 560px; height: 560px;
  top: -120px; right: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(89, 183, 232, 0.45), rgba(89, 183, 232, 0) 68%);
  animation: drift-b 26s ease-in-out infinite;
}
/* A third faint warm glow low-center, painted on the hero background itself */
.hero {
  background:
    radial-gradient(60% 55% at 50% 118%, rgba(223, 241, 252, 0.9), rgba(246, 251, 255, 0) 70%);
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 36px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-46px, 30px) scale(1.10); }
}

.hero-inner { position: relative; z-index: 1; }

/* Elevated logo tile — sits visibly ABOVE the background */
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px; height: 118px;
  padding: 13px;
  background: #fff;
  border-radius: 30px;
  box-shadow:
    0 18px 40px rgba(193, 62, 110, 0.28),
    0 6px 14px rgba(34, 80, 107, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  animation: float-tile 6s ease-in-out infinite;
}
.logo-tile svg { width: 100%; height: 100%; display: block; border-radius: 18px; }

@keyframes float-tile {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1deg); }
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(52px, 12vw, 84px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.02;
  margin: 26px 0 10px;
}
.hero h1 .pop {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pop);
}
.tagline {
  font-size: clamp(19px, 4.4vw, 24px);
  color: var(--ink);
  margin: 10px auto 6px;
  max-width: 560px;
  font-weight: 600;
}
.subline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--pop-deep);
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--pop-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 8px auto 0;
  box-shadow: var(--shadow-sm);
}
.subline::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 4px rgba(193, 62, 110, 0.16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Floating food-emoji decorations */
.hero-emoji {
  position: absolute;
  z-index: -1;
  font-family: var(--font-emoji);
  opacity: 0.85;
  filter: drop-shadow(0 8px 14px rgba(34, 80, 107, 0.14));
  user-select: none;
  pointer-events: none;
}
.hero-emoji.e1 { top: 14%;  left: 8%;  font-size: 44px; animation: bob 7s ease-in-out infinite; }
.hero-emoji.e2 { top: 22%;  right: 9%; font-size: 52px; animation: bob 9s ease-in-out infinite 0.6s; }
.hero-emoji.e3 { top: 58%;  left: 13%; font-size: 40px; animation: bob 8s ease-in-out infinite 1.2s; }
.hero-emoji.e4 { top: 62%;  right: 12%; font-size: 48px; animation: bob 10s ease-in-out infinite 0.3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-18px) rotate(4deg); }
}
@media (max-width: 719px) {
  .hero-emoji { display: none; }
}

/* Wave divider under the hero */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 26px;
  color: #fff; /* fill color of the wave */
}
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Main content band (white) sitting under the wave
   ========================================================================== */
.content-band {
  background: #fff;
  padding-bottom: 8px;
}
.content-band .wrap { padding-top: 4px; }

/* ==========================================================================
   Signup cards — glass-adjacent
   ========================================================================== */
.signup-grid {
  display: grid;
  gap: 20px;
  margin-top: -18px; /* lift cards to overlap the wave nicely */
}
@media (min-width: 720px) {
  .signup-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
/* colored top edge accent */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-ink);
  opacity: 0.9;
}
@media (hover: hover) and (min-width: 720px) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}
.card .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pop-deep);
  background: var(--pop-soft);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  line-height: 1.15;
}
.card .card-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

/* Tiny helper line under a form input */
.form-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

form { margin: 0; }
label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 6px;
}
input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: #9AAAB7; }
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--pop);
  box-shadow: 0 0 0 4px rgba(193, 62, 110, 0.16);
}

button {
  width: 100%;
  margin-top: 20px;
  min-height: 54px;
  border: none;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(193, 62, 110, 0.30);
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
}
button:hover {
  background: var(--grad-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(193, 62, 110, 0.38);
}
button:active { transform: translateY(0); box-shadow: 0 8px 16px rgba(193, 62, 110, 0.28); }
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(193, 62, 110, 0.6);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: 0 6px 14px rgba(193, 62, 110, 0.18);
}

/* Form status message + delightful success state */
.form-msg {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-msg.ok { color: var(--open-green); }
.form-msg.err { color: var(--danger); }
.form-msg.ok::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--open-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transform: scale(0);
  animation: check-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes check-pop {
  0%   { transform: scale(0) rotate(-25deg); }
  70%  { transform: scale(1.25) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   How it works — numbered reveal cards
   ========================================================================== */
.section-head {
  text-align: center;
  margin: 60px auto 8px;
  max-width: 620px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #1C6F9E;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 0;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 10px auto 0;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 34px 0 8px;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 241, 252, 0.9), rgba(223, 241, 252, 0) 70%);
}
.step .step-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: var(--pale);
  z-index: 0;
}
.step .step-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  font-family: var(--font-emoji);
  font-size: 30px;
  background: var(--sky-soft);
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(89, 183, 232, 0.25);
}
.step h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.step p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Scroll-reveal (enabled by JS adding .reveal; motion gated by reduced-motion) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ==========================================================================
   Founder note — signed quote card
   ========================================================================== */
.founder {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, var(--sky-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px 34px;
  margin: 56px 0 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.founder::before {
  content: "\201C";
  position: absolute;
  top: -14px; left: 20px;
  font-family: var(--font-display);
  font-size: 150px;
  line-height: 1;
  color: var(--pop-soft);
  z-index: 0;
}
.founder blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.founder .sign {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  color: var(--pop-deep);
}
.founder .sign small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* ==========================================================================
   Socials / contact strip
   ========================================================================== */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 42px 0 6px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.socials a:hover {
  transform: translateY(-2px);
  border-color: var(--pop);
  color: var(--pop-deep);
}
.badges {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

/* ==========================================================================
   Footer — multi-column
   ========================================================================== */
.footer-wave {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 60px;
  color: #EEF7FD; /* matches footer top */
}
.footer-wave svg { display: block; width: 100%; height: 100%; }

.site-footer {
  background: linear-gradient(180deg, #EEF7FD 0%, #E4F1FB 100%);
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0 40px;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  padding: 8px 0 28px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  margin: 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 4px 0 12px;
  letter-spacing: -0.2px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-col li { margin: 8px 0; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--pop-deep); }
.footer-bottom {
  border-top: 1px solid rgba(89, 183, 232, 0.28);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.footer-bottom p { margin: 0; }
.footer-bottom .made {
  font-weight: 500;
}
.footer-bottom .made span { color: var(--pop); }

/* Legacy .site-footer .wrap row (still used on some builds) stays tidy */
.site-footer .wrap > a { color: var(--muted); margin: 0 8px; }

/* ==========================================================================
   Legal pages (privacy / terms) — calm, highly readable, no motion
   ========================================================================== */
.legal {
  padding: 14px 0 60px;
  max-width: 760px;
}
.legal h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 42px);
  letter-spacing: -1px;
  margin: 24px 0 6px;
}
.legal .effective { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 34px 0 8px;
  padding-top: 6px;
}
.legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 22px 0 6px;
}
.legal p, .legal li { font-size: 16px; color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .lead { font-size: 17.5px; color: var(--ink); }
.back-link {
  display: inline-block;
  margin: 30px 0 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--pop-deep);
}
.back-link:hover { text-decoration: underline; }

/* ==========================================================================
   Motion preferences — disable ALL animation/transition
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
