/* SavItUp marketing site — plain CSS, no framework, no external fonts
   (system font stack only, per the "no external assets/CDNs" constraint).
   Colors mirror design/tokens.json / app/lib/theme.dart's Brand class. */

:root {
  --teal: #0d9488;
  --deep-teal: #085041;
  --teal-dark: #134e4a;
  --coral: #f97362;
  --coral-soft: #fb8a7a;
  --cream: #faf6f0;
  --ink: #1c2b2a;
  --ink-soft: #5c6b69;
  --border-light: #e7e0d6;
  --mist: #ecf5f3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

.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: brand teal gradient, mirrors login_screen.dart's welcome carousel --- */
.hero {
  background: linear-gradient(to bottom, var(--teal), var(--deep-teal));
  padding: 56px 20px 48px;
  text-align: center;
}

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

.mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
}

.mark-up {
  color: var(--coral);
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
}

.tagline {
  margin: 10px 0 28px;
  font-size: 17px;
  color: #9fe1cb;
}

.referral-line {
  margin: 0 0 20px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 14px;
}

.referral-line strong {
  color: var(--coral-soft);
  letter-spacing: 0.03em;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}

.waitlist-form input:focus {
  outline: 3px solid var(--coral-soft);
  outline-offset: 1px;
}

.waitlist-form button {
  flex: 0 0 auto;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  background: var(--coral);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.waitlist-form button:hover {
  background: var(--coral-soft);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.waitlist-message {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--white);
}

.waitlist-message.is-error {
  color: #ffd1cb;
}

.waitlist-message.is-success {
  color: #b6f4e2;
}

.store-button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

/* --- Value-prop sections --- */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px;
}

.value-prop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--border-light);
}

.value-prop:last-child {
  border-bottom: none;
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.value-prop h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.value-prop p {
  margin: 0;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 28px;
  }
  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form button {
    width: 100%;
  }
}
