/* Nearlings — marketing site design system (mirrors the iOS app) */

:root {
  /* Brand palette (from the app icon) */
  --apricot: #F7B27A;
  --coral:   #F0876B;
  --cream:   #FDF3E7;
  --plum:    #4A2E3A;
  --rose:    #C77E77;
  --honey:   #FFD9A0;
  --blush:   #F6C9C0;

  /* Semantic */
  --bg:            #FFF8F0;
  --surface:       #FFFFFF;
  --surface-muted: #FBEEE1;
  --text:          #3B2B2E;
  --text-2:        #8A7168;
  --separator:     #EADBCC;
  --accent:        #F0876B;

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 30px;
  --shadow:     0 14px 40px rgba(74, 46, 58, 0.12);
  --shadow-sm:  0 6px 18px rgba(74, 46, 58, 0.08);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient warm blobs behind everything */
.aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aura::before, .aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.aura::before {
  width: 460px; height: 460px;
  background: var(--apricot);
  top: -160px; right: -120px;
}
.aura::after {
  width: 520px; height: 520px;
  background: var(--coral);
  bottom: -220px; left: -160px;
  opacity: 0.4;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--text); margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(255, 248, 240, 0.72);
  border-bottom: 1px solid rgba(234, 219, 204, 0.6);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-2); font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 800; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  box-shadow: var(--shadow-sm);
}
.btn-ghost { color: var(--accent); background: rgba(240, 135, 107, 0.12); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(240,135,107,.12); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.2rem; color: var(--text-2); max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.hero-note { font-size: .85rem; color: var(--text-2); margin-top: 16px; }

/* Phone mockup */
.phone {
  justify-self: center;
  width: 300px; max-width: 80vw;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2226, #14100f);
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,.06) inset;
  transform: rotate(2deg);
}
.phone img { width: 100%; display: block; border-radius: 34px; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(234,219,204,.6);
}
.card img.il { width: 88px; height: 88px; object-fit: contain; margin-bottom: 8px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--text-2); margin: 0; font-size: .98rem; }

/* Decks grid */
.decks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.deck {
  position: relative; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.deck img { width: 100%; height: 100%; object-fit: cover; }
.deck .label {
  position: absolute; inset: auto 0 0 0; padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  color: #fff; font-weight: 800; font-size: 1.02rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; }
.step .num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  color: #fff; background: linear-gradient(135deg, var(--apricot), var(--coral));
}
.step p { color: var(--text-2); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0,340px)); gap: 22px; justify-content: center; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); border: 1.5px solid rgba(234,219,204,.7); text-align: center; }
.plan.best { border-color: var(--coral); box-shadow: var(--shadow); position: relative; }
.plan .tag { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background: linear-gradient(135deg,var(--apricot),var(--coral)); color:#fff; font-weight:800; font-size:.78rem; padding:5px 14px; border-radius:999px; }
.plan .price { font-family: var(--serif); font-size: 2.4rem; color: var(--text); }
.plan .per { color: var(--text-2); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--text); }
.plan li::before { content: "♥"; position: absolute; left: 0; color: var(--coral); }
.trial-note { text-align:center; color: var(--text-2); font-size:.85rem; margin-top: 20px; }

/* CTA band */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--apricot), var(--coral)); border-radius: var(--radius-lg); padding: 56px 24px; margin: 20px 0; color: #fff; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn-primary { background: #fff; color: var(--coral); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--separator); padding: 48px 0 40px; margin-top: 30px; }
.footer .container { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 10px; }
.footer .muted { color: var(--text-2); font-size: .92rem; max-width: 32ch; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a { color: var(--text-2); font-weight: 700; }
.footer nav a:hover { color: var(--text); text-decoration: none; }
.foot-bottom { text-align: center; color: var(--text-2); font-size: .85rem; margin-top: 30px; }

/* ---------- Legal prose ---------- */
.legal { padding: 56px 0 20px; }
.legal .container { max-width: 780px; }
.legal h1 { margin-bottom: .2em; }
.legal .updated { color: var(--text-2); margin-bottom: 32px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal a { font-weight: 700; }
.legal .callout { background: var(--surface-muted); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--text-2); font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .phone { grid-row: 1; transform: none; margin-bottom: 10px; }
  .features, .steps { grid-template-columns: 1fr; }
  .decks { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
