/* ============================================================
   CREW — Design System
   Vibe: household warmth × operating-system precision
   ============================================================ */

:root {
  /* Brand */
  --mint:        #28BCA9;
  --mint-bright: #34D2BC;
  --mint-deep:   #15917F;
  --mint-ink:    #0C302C;

  /* Feature accents (from app + icon) */
  --coral:   #FF6B5C;   /* Expenses / money */
  --amber:   #F7B26A;   /* Routines / energy */
  --slate:   #4A6B8A;   /* Documents / trust */
  --violet:  #8E7BE8;   /* Tasks / mind */
  --peach:   #FBD9B4;   /* notes paper */
  --lavender:#ECE7FB;

  /* Neutrals */
  --ink:     #102A2A;
  --ink-soft:#3C5453;
  --muted:   #6C817F;
  --line:    #E4EDEA;
  --bg:      #FBFBF9;
  --bg-mint: #EEF8F4;
  --bg-deep: #07241F;
  --white:   #FFFFFF;

  /* Type */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 8px rgba(16,42,42,.06);
  --sh-md: 0 14px 40px -16px rgba(16,42,42,.22);
  --sh-lg: 0 40px 80px -30px rgba(16,42,42,.34);
  --sh-mint: 0 18px 44px -16px rgba(40,188,169,.55);

  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint-deep); margin-bottom: 18px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--mint); border-radius: 2px; }

.h-xxl { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h-xl  { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h-lg  { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lead  { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 56ch; }

.center { text-align: center; }
.center .lead { margin-left:auto; margin-right:auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; padding: 16px 26px; border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--mint); color: #fff; box-shadow: var(--sh-mint); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -16px rgba(40,188,169,.7); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); }

/* ---------- Store badges ---------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge { display:block; transition: transform .25s var(--ease), filter .25s; border-radius: 11px; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { transform: translateY(-3px); filter: drop-shadow(0 12px 22px rgba(16,42,42,.28)); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); background: rgba(251,251,249,.78);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(251,251,249,.92); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--sh-sm); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--mint-deep); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .hl { color: var(--mint-deep); position: relative; white-space: nowrap; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display:flex; flex-direction: column; gap: 18px; }
.hero-note { display:flex; align-items:center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-note .dots { display:flex; }
.hero-note .dots span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; }

.pill-chip {
  display:inline-flex; align-items:center; gap: 9px; padding: 7px 15px 7px 9px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--sh-sm); margin-bottom: 26px;
}
.pill-chip b { color: var(--mint-deep); }
.pill-chip .live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(40,188,169,.18); }

/* Phone showcase */
.phone-stage { position: relative; display:flex; justify-content:center; align-items:center; min-height: 560px; }
.phone {
  width: 268px; border-radius: 38px; background: #0c302c; padding: 9px;
  box-shadow: var(--sh-lg); position: relative; z-index: 2;
}
.phone img { border-radius: 30px; display:block; }
.phone.tilt { transform: rotate(-4deg); }
.phone-back {
  position: absolute; width: 220px; right: -6%; top: 14%; z-index: 1; opacity: .96;
  transform: rotate(6deg); border-radius: 34px; background:#0c302c; padding:8px; box-shadow: var(--sh-md);
}
.phone-back img { border-radius: 27px; }
.glow { position:absolute; border-radius: 50%; filter: blur(60px); z-index: 0; }
.glow.g1 { width: 340px; height: 340px; background: rgba(40,188,169,.34); left: 0; top: 8%; }
.glow.g2 { width: 240px; height: 240px; background: rgba(255,107,92,.22); right: 4%; bottom: 6%; }

/* floating feature tags around phone */
.float-tag {
  position:absolute; z-index: 3; background:#fff; border-radius: var(--r-md);
  padding: 11px 15px; box-shadow: var(--sh-md); display:flex; align-items:center; gap:10px;
  font-weight: 700; font-size: 14px; animation: float 5s ease-in-out infinite;
}
.float-tag .ic { width: 30px; height: 30px; border-radius: 9px; display:grid; place-items:center; color:#fff; }
.float-tag.t1 { top: 6%; left: -4%; }
.float-tag.t2 { bottom: 18%; left: -8%; animation-delay: 1.3s; }
.float-tag.t3 { top: 30%; right: -10%; animation-delay: .6s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* orbit motif divider */
.orbit { width: 54px; height: 54px; position: relative; }

/* ---------- Logo / trust strip ---------- */
.trust { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-in { display:flex; align-items:center; justify-content:center; gap: 30px; flex-wrap:wrap; color: var(--muted); font-weight: 700; font-size: 14px; }
@media (min-width: 760px){ .trust-in .stat span { white-space: nowrap; } }
.trust-in .stat b { font-family: var(--font-display); font-size: 26px; color: var(--ink); display:block; line-height:1; }
.trust-in .stat span { font-size: 13px; font-weight:600; }
.trust-sep { width:1px; height: 34px; background: var(--line); }

/* ---------- Problem section ---------- */
.problem { background: var(--bg-deep); color: #cfeee7; }
.problem h2 { color: #fff; }
.problem .lead { color: #9fcabf; }
.chaos-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 44px; }
.chaos-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg); padding: 26px; transition: transform .3s var(--ease), background .3s;
}
.chaos-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); }
.chaos-card .q { font-family: var(--font-display); font-size: 19px; color:#fff; font-weight: 700; margin-bottom: 8px; }
.chaos-card p { color: #8fbdb2; font-size: 15px; }
.chaos-card .em { font-size: 24px; }
.turn { margin-top: 48px; text-align:center; }
.turn .big { font-family: var(--font-display); font-size: clamp(1.6rem,3.2vw,2.5rem); color:#fff; font-weight:800; letter-spacing:-.02em; }
.turn .big em { color: var(--mint-bright); font-style: normal; }

/* ---------- Features ---------- */
.feat-row { display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; margin-bottom: 110px; }
.feat-row:last-child { margin-bottom: 0; }
.feat-row.flip .feat-media { order: -1; }
.feat-icon { width: 56px; height: 56px; border-radius: 16px; display:grid; place-items:center; color:#fff; margin-bottom: 22px; box-shadow: var(--sh-md); }
.feat-row h3 { font-size: clamp(1.7rem,2.6vw,2.3rem); margin-bottom: 16px; }
.feat-row p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 22px; max-width: 46ch; }
.feat-list { list-style:none; display:flex; flex-direction:column; gap: 12px; }
.feat-list li { display:flex; align-items:flex-start; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.feat-list li .tick { flex:none; width: 22px; height: 22px; border-radius: 50%; display:grid; place-items:center; color:#fff; font-size: 12px; margin-top: 1px; }
.feat-media { position: relative; display:flex; justify-content:center; }
.feat-frame {
  width: 290px; border-radius: 40px; padding: 10px; background:#0c302c; box-shadow: var(--sh-lg); position:relative; z-index:2;
}
.feat-frame img { border-radius: 31px; }
.feat-blob { position:absolute; width: 320px; height: 320px; border-radius: 46% 54% 52% 48%; filter: blur(8px); opacity:.5; z-index:0; top:8%; }

/* ---------- Bento "everything" ---------- */
.bento { display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; margin-top: 50px; }
.bento .cell {
  border-radius: var(--r-lg); padding: 26px; position: relative; overflow:hidden;
  background:#fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.bento .cell:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.bento .cell h4 { font-size: 1.15rem; margin-bottom: 8px; }
.bento .cell p { font-size: 14px; color: var(--ink-soft); }
.bento .c-wide { grid-column: span 2; }
.bento .c-tall { grid-row: span 2; }
.bento .ic-badge { width: 44px; height:44px; border-radius: 12px; display:grid; place-items:center; color:#fff; margin-bottom: 16px; }

/* ---------- How it works ---------- */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 52px; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; position:relative; box-shadow: var(--sh-sm); }
.step .num { font-family: var(--font-display); font-size: 52px; font-weight:800; color: var(--bg-mint); line-height:.8; -webkit-text-stroke: 1px var(--mint); margin-bottom: 14px; }
.step h4 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Testimonials ---------- */
.quotes { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 50px; }
.quote { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); }
.quote .stars { color: var(--amber); font-size: 15px; letter-spacing:2px; margin-bottom: 14px; }
.quote p { font-size: 16px; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.quote .who { display:flex; align-items:center; gap: 12px; }
.quote .av { width: 40px; height:40px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:800; font-family:var(--font-display); }
.quote .who b { display:block; font-size: 14.5px; }
.quote .who span { font-size: 13px; color: var(--muted); }

/* ---------- Blog teaser ---------- */
.blog-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; }
.post-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); overflow:hidden;
  box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s; display:flex; flex-direction:column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.post-card .cover { height: 5px; font-size:0; line-height:0; }
.post-card .body { padding: 22px; flex:1; display:flex; flex-direction:column; }
.post-card .tag { font-size: 12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--mint-deep); margin-bottom: 10px; }
.post-card h3 { font-size: 1.18rem; line-height:1.25; margin-bottom: 10px; }
.post-card p { font-size: 14.5px; color: var(--ink-soft); flex:1; }
.post-card .meta { margin-top: 16px; font-size: 13px; color: var(--muted); font-weight:600; display:flex; align-items:center; gap:8px; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; }
.cta-card {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
  border-radius: var(--r-xl); padding: 72px 56px; text-align:center; color:#fff; position:relative; overflow:hidden;
  box-shadow: var(--sh-lg);
}
.cta-card h2 { color:#fff; font-size: clamp(2rem,4vw,3.2rem); margin-bottom: 18px; }
.cta-card p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 48ch; margin: 0 auto 30px; }
.cta-card .stores { justify-content:center; }
.cta-card .store-badge img { height: 56px; }
.cta-deco { position:absolute; border-radius:50%; background: rgba(255,255,255,.12); }
.cta-deco.d1 { width: 200px; height:200px; top:-60px; left:-40px; }
.cta-deco.d2 { width: 280px; height:280px; bottom:-120px; right:-60px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: #9fcabf; padding: 70px 0 34px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color:#fff; margin-bottom: 16px; }
.footer p { font-size: 14.5px; max-width: 34ch; }
.footer h5 { color:#fff; font-family:var(--font-display); font-size: 15px; margin-bottom: 16px; letter-spacing:.02em; }
.footer ul { list-style:none; display:flex; flex-direction:column; gap: 11px; }
.footer ul a { font-size: 14.5px; color:#9fcabf; transition: color .2s; }
.footer ul a:hover { color: var(--mint-bright); }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  .float-tag { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Anchor offset + stable image boxes (prevents jump-to-wrong-section) ---------- */
section[id] { scroll-margin-top: 88px; }
.phone img, .phone-back img, .feat-frame img { aspect-ratio: 1080 / 2412; object-fit: cover; width: 100%; }

/* ---------- Testimonials: horizontal scroll ---------- */
.quotes-scroll {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: 50px; padding: 6px 2px 22px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--mint) transparent;
}
.quotes-scroll::-webkit-scrollbar { height: 8px; }
.quotes-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.quotes-scroll::-webkit-scrollbar-thumb:hover { background: var(--mint); }
.quotes-scroll .quote { scroll-snap-align: start; flex: 0 0 360px; max-width: 82vw; margin: 0; }

/* ---------- Toast ---------- */
.site-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(24px);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: var(--r-pill); box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 200;
}
.site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding-top: 36px; }
  .phone-stage { min-height: 440px; margin-top: 18px; }
  .feat-row, .feat-row.flip { grid-template-columns: 1fr; gap: 30px; }
  .feat-row.flip .feat-media { order: 0; }
  .bento { grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; }
  .bento .c-tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#fff; box-shadow:var(--sh-sm); }
  .nav.open .nav-links {
    display:flex; position:absolute; top:74px; left:0; right:0; flex-direction:column; gap:6px;
    background:#fff; padding:18px 24px 24px; border-bottom:1px solid var(--line); box-shadow: var(--sh-md);
  }
  .nav.open .nav-links a { padding: 12px 0; font-size:17px; }
  .chaos-grid, .steps, .quotes, .blog-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .cell { min-height: 150px; }
  .bento .c-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap:28px; }
  .cta-card { padding: 50px 26px; }

  /* Clean, overflow-free hero on phones: one phone, no floating decorations */
  .phone-stage { min-height: 0; }
  .phone-back, .float-tag { display: none; }
  .phone { width: min(74vw, 300px); transform: none; }
  .glow.g1 { width: 240px; height: 240px; }
  .glow.g2 { width: 180px; height: 180px; }
  .feat-frame { width: min(74vw, 290px); }
  .trust-sep { display: none; }
  .trust-in { flex-direction: column; gap: 20px; }
  .trust-in .stat { text-align: center; }
}

@media (max-width: 440px) {
  .wrap { padding: 0 18px; }
  .h-xxl { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .section { padding: 54px 0; }
  .btn { padding: 15px 22px; font-size: 15px; }
  .store-badge img { height: 50px; }
  .pill-chip { font-size: 12.5px; }
  .quotes-scroll .quote { flex-basis: 86vw; }
  .cta-card { padding: 42px 22px; border-radius: var(--r-lg); }
  .feat-icon { width: 50px; height: 50px; }
}
