/* Qalbi marketing site — theme tokens mirror the app (src/utils/theme.ts). */
:root {
  --background: #f5ede3;
  --surface: #ede5d9;
  --accent: #e85d5d;
  --primary: #d44848;
  --cta: #e07a6a;
  --text: #2c2c2a;
  --muted: #8b8078;
  --border: #d5cbc0;
  --glow: #ffc04d;
  --white: #fff;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --maxw: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
}
.brand { font-weight: 800; font-size: 23px; letter-spacing: -0.01em; }
.brand span {
  background: linear-gradient(135deg, #e85d5d 0%, #d44848 55%, #e07a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d44848; /* fallback for browsers without background-clip:text */
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--text); font-weight: 700; font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 9px 18px; background: var(--surface);
}
.nav-cta:hover { text-decoration: none; border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px 0 72px;
}
.hero-copy h1 {
  font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; margin: 0 0 18px;
  letter-spacing: -0.02em; font-weight: 800;
}
.hero-copy h1 .accent { color: var(--primary); }
.hero-copy .sub { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: 13px; font-weight: 700; margin-bottom: 0;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.badge .dot-green { background: #3b6d11; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.badge-row .badge { margin-bottom: 0; }
.waitlist-label { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 10px; }

/* ---------- Waitlist form ---------- */
.form {
  display: flex; gap: 10px; background: var(--white); padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  max-width: 460px; box-shadow: 0 8px 30px rgba(44, 44, 42, 0.06);
}
.form input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; padding: 10px 16px; color: var(--text); min-width: 0;
}
.form input::placeholder { color: var(--muted); }
.btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 16px;
  background: var(--cta); color: var(--white);
  border-radius: var(--radius-pill); padding: 12px 24px; white-space: nowrap;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.btn:hover { filter: brightness(0.96); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: default; }

.form-status { margin: 12px 4px 0; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.success { color: var(--primary); }
.form-status.error { color: #b3261e; }
.form-note { margin: 14px 4px 0; font-size: 13px; color: var(--muted); }

/* ---------- Hero mascot ---------- */
.hero-art { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-art .glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 77, 0.45) 0%, rgba(255, 192, 77, 0) 68%);
  filter: blur(4px); z-index: 0;
}
.hero-art img { width: min(360px, 80%); position: relative; z-index: 1; }

/* ---------- Section ---------- */
section { padding: 56px 0; }
.section-label {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px;
  font-weight: 800; color: var(--muted); text-align: center; margin: 0 0 10px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 38px); text-align: center; margin: 0 0 44px;
  font-weight: 800; letter-spacing: -0.01em;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
}
.card .ico { font-size: 26px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px;
  scroll-snap-type: x mandatory; justify-content: flex-start;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.phone {
  flex: 0 0 auto; scroll-snap-align: center;
  border-radius: 34px; padding: 8px; background: #1c1c1e;
  box-shadow: 0 16px 40px rgba(44, 44, 42, 0.18);
}
.phone img { display: block; width: 240px; border-radius: 27px; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; }
.closing .form { margin: 0 auto; }
.closing .form-status, .closing .form-note { text-align: center; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); margin-top: 32px;
  padding: 32px 0; color: var(--muted); font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 64px; }
.legal h1 { font-size: 34px; font-weight: 800; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.legal p, .legal li { color: #4a463f; font-size: 16px; }
.legal a { font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 48px; text-align: center; }
  .hero-copy .sub { margin-left: auto; margin-right: auto; }
  .badge { margin-left: auto; margin-right: auto; }
  .badge-row { justify-content: center; }
  .form { margin: 0 auto; }
  .hero-art { order: -1; }
  .hero-art .glow { width: 300px; height: 300px; }
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .shots { justify-content: flex-start; }
}
