/* ==========================================================================
   Serendib waitlist landing page
   THEME RULE: light green backgrounds + BLACK text. No blue anywhere.
   Accent = warm rose/gold for "romance" only on small touches (allowed, not blue).
   ========================================================================== */

:root {
  --green-bg:      #eef7ec;  /* soft light green page background */
  --green-tint:    #e2f1dd;  /* slightly deeper green for alternating sections */
  --green-deep:    #d3e8cb;  /* card / panel green */
  --green-button:  #5e9c4f;  /* leafy green for buttons */
  --green-button-hover: #4d8540;
  --green-border:  #b9d8ac;  /* soft green borders */
  --ink:           #161a14;  /* near-black text */
  --ink-soft:      #2f3a2b;  /* softened black for body copy */
  --rose:          #b3434f;  /* warm romantic accent (NOT blue) */
  --shadow:        0 10px 30px rgba(20, 40, 15, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--green-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, #f4fbf1 0%, var(--green-bg) 60%);
  padding: 40px 20px 56px;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.logo {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 3px solid var(--green-border);
}

.kicker {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 26px 0 0;
  color: var(--ink);
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 6px 0 0;
  color: var(--ink);
}

.sub-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: 0.5px;
  margin: 10px 0 0;
  color: var(--green-button-hover);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 18px auto 0;
}

/* ===== SIGNUP FORM ===== */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 30px auto 10px;
  max-width: 540px;
}

.signup input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 15px 18px;
  font-size: 1rem;
  border: 2px solid var(--green-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.signup input[type="email"]:focus {
  border-color: var(--green-button);
  box-shadow: 0 0 0 4px rgba(94, 156, 79, 0.18);
}

.signup button {
  flex: 0 0 auto;
  padding: 15px 26px;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--green-button);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}

.signup button:hover { background: var(--green-button-hover); }
.signup button:active { transform: translateY(1px); }
.signup button:disabled { opacity: .65; cursor: default; }

.form-msg {
  flex: 1 1 100%;
  margin: 6px 0 0;
  font-weight: 700;
  min-height: 1.2em;
}
.form-msg.ok    { color: var(--green-button-hover); }
.form-msg.error { color: var(--rose); }

/* Honeypot spam-trap field — hidden from real visitors, bots still fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-fineprint {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ===== SECTIONS ===== */
.section { padding: 56px 20px; }
.section-tint { background: var(--green-tint); }
.container { max-width: 880px; margin: 0 auto; text-align: center; }

.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  margin: 0 0 14px;
  color: var(--ink);
}

.lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--green-deep);
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.card-icon { font-size: 2.2rem; }
.card h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ===== CTA SECTION ===== */
.section-cta { background: var(--green-tint); }

.cta-button {
  display: inline-block;
  margin-top: 22px;
  padding: 15px 34px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  background: var(--green-button);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background .15s ease;
}
.cta-button:hover { background: var(--green-button-hover); }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-deep);
  border-top: 1px solid var(--green-border);
  text-align: center;
  padding: 34px 20px;
}
.footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
  margin: 0 0 6px;
  color: var(--ink);
}
.footer-small {
  margin: 0;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 520px) {
  .signup button { flex: 1 1 100%; }
  .section { padding: 44px 18px; }
}
