/* ============================================================
   JustArrived website — design system matched to the app
   coral #FF6B6B → amber #FFB347 gradients on warm-white #FFF9F7,
   bold friendly sans, flat rows, colorful rounded icon tiles.
   ============================================================ */
:root {
  --coral: #FF6B6B;
  --coral-light: #FF8A8A;
  --amber: #FFB347;
  --warm-white: #FFF9F7;
  --white: #FFFFFF;
  --ink: #111827;
  --body: #374151;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --divider: #F3F4F6;
  --border: #E5E7EB;
  --callout-bg: #FFFBEB;
  --callout-border: #F59E0B;
  --callout-ink: #92400E;
  --grad: linear-gradient(135deg, #FF6B6B, #FF8A8A 45%, #FFB347);
  /* spacing rhythm */
  --s-section: 96px;
  --s-section-sm: 64px;
  --radius: 16px;
  --radius-lg: 24px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--warm-white);
  color: var(--body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  padding: 18px 0;
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.4px;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav a {
  color: var(--muted); margin-left: 24px;
  font-size: 15px; font-weight: 600;
}
.nav a:hover { color: var(--coral); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-section) 0 0; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: 52px; font-weight: 800; color: var(--ink);
  letter-spacing: -1.2px; line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--coral); }
.hero .lede {
  font-size: 19px; color: var(--muted); line-height: 1.6;
  margin-bottom: 36px; max-width: 480px;
}
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-button {
  display: inline-block;
  background: var(--grad);
  color: var(--white);
  font-weight: 700; font-size: 17px;
  padding: 16px 36px;
  border-radius: 14px;
  border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
}
.cta-button:hover { text-decoration: none; transform: translateY(-1px); }
.cta-note { font-size: 14px; color: var(--faint); }

.waitlist { margin-top: 4px; }
.waitlist-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 440px; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px; background: var(--white); color: var(--ink);
}
.waitlist-form input[type="email"]:focus { outline: 2px solid var(--coral-light); border-color: transparent; }
.waitlist-form button {
  background: var(--white); color: var(--coral);
  font-weight: 700; font-size: 15px;
  padding: 14px 22px;
  border: 1.5px solid var(--coral);
  border-radius: 12px; cursor: pointer;
}
.waitlist-form button:hover { background: var(--coral); color: var(--white); }
.form-note { font-size: 13px; color: var(--faint); margin-top: 10px; }

.hero-phone {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(255, 107, 107, 0.28);
  /* the image carries the app's own coral→amber gradient — cut at section end */
  margin-bottom: -80px;
}

/* ---------- Emotional band (baked-in art & headline — no overlay) ---------- */
.band { padding: var(--s-section) 0 0; }
.band img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: var(--s-section) 0; }
.section.alt {
  background: var(--white);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.section-title {
  font-size: 34px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.6px; text-align: center;
  margin-bottom: 14px;
}
.section-lede {
  text-align: center; color: var(--muted); font-size: 18px;
  max-width: 560px; margin: 0 auto 56px;
}

/* ---------- Feature tiles (app's icon-tile style) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
}
.icon-tile {
  width: 48px; height: 48px; flex: none;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.icon-tile svg { width: 24px; height: 24px; }
.tile-coral  { background: #FFF0F0; color: #FF6B6B; }
.tile-green  { background: #ECFDF5; color: #10B981; }
.tile-blue   { background: #F0F9FF; color: #3B82F6; }
.tile-purple { background: #F5F3FF; color: #8B5CF6; }
.feature h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Screenshot showcase (frames & captions baked into assets) ---------- */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px; margin: 0 auto;
}
.screens img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
}

/* ---------- Trust rows (flat, thin dividers — like app lists) ---------- */
.trust-rows { max-width: 720px; margin: 0 auto; }
.trust-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 4px;
  border-bottom: 1px solid var(--divider);
}
.trust-row:last-of-type { border-bottom: none; }
.trust-num {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background: var(--grad);
  color: var(--white);
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.trust-row h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.trust-row p { font-size: 15px; color: var(--muted); }
.trust-more { text-align: center; margin-top: 32px; font-size: 15px; font-weight: 600; }

/* ---------- Document pages (privacy / terms / verify) ---------- */
.doc { padding: 72px 0 var(--s-section); }
.doc h1 { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -0.8px; margin-bottom: 8px; }
.doc .doc-meta { color: var(--faint); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; margin: 40px 0 12px; }
.doc h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.doc p { margin-bottom: 14px; font-size: 16px; }
.doc ul { margin: 0 0 14px 24px; }
.doc li { margin-bottom: 8px; font-size: 16px; }
.callout {
  background: var(--callout-bg);
  border-left: 4px solid var(--callout-border);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 0 0 36px;
  color: var(--callout-ink);
  font-size: 15px; line-height: 1.65;
}
.callout strong { display: block; margin-bottom: 8px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--divider);
  padding: 48px 0 56px;
  text-align: center;
}
.site-footer .brand { justify-content: center; margin-bottom: 20px; display: inline-flex; }
.footer-links { font-size: 15px; margin-bottom: 16px; }
.footer-links a { margin: 0 12px; color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--coral); }
.site-footer .fine {
  font-size: 13px; color: var(--faint);
  max-width: 520px; margin: 0 auto; line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --s-section: 64px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.8px; }
  .hero-phone { max-width: 300px; margin: 0 auto -64px; }
  .features { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; max-width: 320px; gap: 32px; }
  .section-title { font-size: 28px; }
  .doc h1 { font-size: 30px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 32px; }
  .nav a { margin-left: 14px; font-size: 14px; }
  .cta-button { width: 100%; text-align: center; }
  .waitlist-form input[type="email"] { min-width: 0; }
}
