/* ─── Fonts ─────────────────────────────────────────────── */
@font-face {
  font-family: 'BethEllen';
  src: url('assets/BethEllen-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

:root {
  --bg:        #EDE5CB;
  --text:      #54420B;
  --btn-bg:    #C4B88A;
  --btn-text:  #3A3218;
  --radius:    14px;
  --content-w: 430px;
  --content-p: 24px;
}

/* Body is full viewport width — inner containers hold the max-width */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1fr;
}

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

/* ─── Flower Border Images ──────────────────────────────── */
.flowers-top,
.flowers-bottom {
  display: block;
  width: 100%;
  max-width: none;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

/* Natural sizing — no cropping so no flowers get clipped at the sides.
   site-top.png  2560×782 → height = 30.55vw at 100vw width.
     Flowers occupy top 35% (10.7vw); transparent zone below = 19.85vw.
   site-bottom.png 2560×858 → height = 33.51vw at 100vw width.
     Flowers occupy bottom 38% (12.73vw); transparent zone at top = 20.78vw. */
.flowers-top {
  height: auto;
}

.flowers-bottom {
  height: auto;
  /* pull up past the transparent top zone (20.78vw) then 64px into flowers */
  margin-top: calc(-20.78vw - 64px);
  z-index: 2;
}

/* ─── Hero overlaps top border ──────────────────────────── */
/* flowers-top natural height = 30.55vw; flowers in top 10.7vw; transparent zone = 19.85vw.
   Shift hero up by 19.85vw to sit right at the flower edge (no extra 64px overlap). */
.hero {
  margin-top: calc(-19.85vw + 32px);
  position: relative;
  z-index: 1;
}

/* ─── Inner content containers ──────────────────────────── */
.hero-inner,
.footer-inner {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding-bottom: 48px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px var(--content-p) 0;
}

.tagline {
  font-family: 'BethEllen', cursive;
  font-size: 48px;
  font-weight: normal;
  color: var(--text);
  line-height: 1.1;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-waitlist {
  display: inline-block;
  padding: 13px 32px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 100px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-waitlist:hover   { background: #B8AB7A; }
.btn-waitlist:active  { transform: scale(0.97); }
.btn-waitlist:disabled { opacity: 0.5; cursor: default; }

/* ─── App Screen ────────────────────────────────────────── */
.app-screen {
  display: block;
  width: 75%;
  height: auto;
  margin: 32px auto 0;
  position: relative;
  z-index: 1;
}

/* ─── Waitlist ──────────────────────────────────────────── */
.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 32px;
}

.waitlist-label {
  color: var(--text);
}

.waitlist-row {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.45);
  border: 1.5px solid rgba(58, 50, 24, 0.18);
  border-radius: 100px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.waitlist-row:focus-within {
  background: rgba(255,255,255,0.65);
  border-color: rgba(58, 50, 24, 0.4);
}

.waitlist-input {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.waitlist-input::placeholder { color: var(--text); opacity: 0.5; }

.btn-submit {
  border: none;
  padding: 8px 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waitlist-success {
  color: var(--text);
  font-style: italic;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  margin-top: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  padding: 20px var(--content-p) 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-text,
.footer-credit {
  color: var(--text);
}

.footer-privacy {
  margin-top: 16px;
  color: var(--text);
  opacity: 0.55;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.footer-privacy:hover { opacity: 1; }

.footer-link {
  color: inherit;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

/* ─── Privacy Modal ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 50, 24, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  background: #EDE5CB;
  border-radius: 20px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.modal h2 {
  font-family: 'BethEllen', cursive;
  font-size: 2rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 16px;
}

.modal p {
  color: var(--text);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text);
  opacity: 0.5;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.modal-close:hover { opacity: 1; }

/* ─── Desktop ───────────────────────────────────────────── */
@media (min-width: 700px) {
  :root {
    --content-w: 860px;
    --content-p: 40px;
  }

  .tagline {
    font-size: 56px;
  }

  .app-screen {
    width: auto;
    max-width: 389px;
  }

  .waitlist-form {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}
