/* Melo marketing site — palette matches the app: cream / orange / brown
   on a warm gradient backdrop. Inter for body, system-ui for navigation
   so it reads as native on iOS. */

:root {
  --cream: #FBF6EE;
  --cream-2: #F5EAD8;
  --ink: #3D2C1E;
  --ink-soft: #6B574A;
  --orange: #E8573A;
  --orange-2: #C34A36;
  --teal: #00C9A7;
  --max-w: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(232, 87, 58, 0.18), transparent 60%),
    radial-gradient(800px 400px at 110% 30%, rgba(0, 201, 167, 0.14), transparent 60%),
    var(--cream);
  padding: 28px 24px 96px;
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.hero-content {
  max-width: 880px;
  margin: 88px auto 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-title-accent {
  background: linear-gradient(120deg, var(--orange) 10%, #FF9671 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.appstore-badge img {
  height: 56px;
  display: block;
}
.appstore-note {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Features ---------- */

.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(61, 44, 30, 0.06);
  border-radius: 24px;
  padding: 32px 28px;
}
.feature h2 {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 700;
}
.feature p {
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  font-size: 15px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* ---------- How It Works ---------- */

.howitworks {
  background: #fff;
  padding: 96px 24px;
  text-align: center;
}
.howitworks-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.howitworks-sub {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 auto 48px;
  max-width: 520px;
  line-height: 1.5;
}
.howitworks-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
.howitworks-step {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  border-radius: 20px;
  border: 1px solid rgba(232, 87, 58, 0.10);
}
.howitworks-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(232, 87, 58, 0.28);
}
.howitworks-step h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.howitworks-step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 820px) {
  .howitworks-steps { grid-template-columns: 1fr; gap: 20px; }
  .howitworks { padding: 64px 20px; }
}

/* ---------- Screenshots ---------- */

.screenshots {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 96px 24px;
  text-align: center;
}
.screenshots-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.screenshots-sub {
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 56px;
  line-height: 1.55;
}
.shots {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  /* Locked to 3 columns on desktop so 6 shots = clean 3x2 grid (no
     orphans). Tablet drops to 2-col, phone to 1-col. */
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 820px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .shots { grid-template-columns: 1fr; }
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shot img {
  width: 100%;
  max-width: 280px;
  border-radius: 36px;
  box-shadow: 0 24px 60px -20px rgba(61, 44, 30, 0.35);
  /* Placeholder background until real screenshots land */
  background: linear-gradient(160deg, #FFD6A5, #E8573A);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}
.shot figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 240px;
  line-height: 1.45;
}

/* ---------- Waitlist / Email Capture ---------- */

.waitlist {
  padding: 80px 24px;
  background: #fff;
  display: flex;
  justify-content: center;
}
.waitlist-card {
  width: 100%;
  max-width: 640px;
  padding: 48px 36px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  border-radius: 28px;
  text-align: center;
  color: #fff;
  box-shadow: 0 18px 48px -16px rgba(232, 87, 58, 0.45);
}
.waitlist-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.waitlist-sub {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
  max-width: 460px;
  margin: 0 auto 28px;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.waitlist-form input::placeholder {
  color: rgba(61, 44, 30, 0.45);
}
.waitlist-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}
.waitlist-form button {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.waitlist-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.waitlist-form button:active {
  transform: translateY(0);
}
@media (max-width: 520px) {
  .waitlist-card { padding: 40px 24px; }
  .waitlist-form button { width: 100%; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #E2D7C9;
  padding: 56px 24px 32px;
}
.footer a { color: #FFD6A5; }
.footer-row {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer p {
  margin: 4px 0 0;
  color: #B5A693;
  font-size: 14px;
}
.footer strong { font-size: 18px; color: #FFD6A5; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.footer-fine {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 12px;
  color: #8A7C6E;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hero { padding: 20px 18px 64px; }
  .hero-content { margin-top: 56px; }
  .features { padding: 56px 18px; }
  .screenshots { padding: 64px 18px; }
  .nav-links { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: row; flex-wrap: wrap; }
}
