/* ============================================================
   bro — landing page styles
   Soft, warm, friendly. Apple + Notion + Perplexity.
   ============================================================ */

:root {
  /* Greens pulled from the logo */
  --green:        #5bad2f;
  --green-bright: #6cbf3d;
  --green-deep:   #1c401d;
  --green-ink:    #173417;
  --green-soft:   #eaf4e0;
  --green-mist:   #f2f8ea;

  --accent:       #f2c94c;   /* the little yellow chips */
  --cream:        #fbfbf3;
  --cream-2:      #f6f6ec;
  --ink:          #1d2b1c;
  --muted:        #5c6b58;
  --line:         rgba(28, 64, 29, 0.10);

  --radius:   22px;
  --radius-lg: 34px;
  --shadow-sm: 0 2px 10px rgba(28, 64, 29, 0.06);
  --shadow-md: 0 18px 50px -20px rgba(28, 64, 29, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(28, 64, 29, 0.40);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }

a { color: inherit; text-decoration: none; }

.grad {
  background: linear-gradient(95deg, var(--green-bright), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Wordmark ----------
   The real brand logo, traced from the artwork into assets/bro-logo.svg
   and painted with a CSS mask so it recolors via `color` (green on light
   sections, light on the dark-green ones) and stays razor-sharp at any
   size. Everything scales from one font-size. Aspect ratio 963:702. */
.wordmark {
  display: inline-block;
  font-size: 40px;                 /* master scale */
  width: 1.372em; height: 1em;
  color: var(--green);
  background-color: currentColor;
  -webkit-mask: url(assets/bro-logo.svg) center / contain no-repeat;
          mask: url(assets/bro-logo.svg) center / contain no-repeat;
  vertical-align: middle;
}
.wordmark-mini { font-size: 34px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px;
  border-radius: 100px;
  border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(91, 173, 47, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(91, 173, 47, 0.7); }
.btn-ghost { background: transparent; color: var(--green-deep); padding: 14px 18px; }
.btn-ghost:hover { color: var(--green); transform: translateX(2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(251, 251, 243, 0.8);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--green-deep); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(108, 191, 61, 0.20), transparent 62%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  background: var(--green-soft);
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 19px; color: var(--muted);
  max-width: 520px; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--cream); margin-left: -10px;
  background-size: cover;
}
.avatars span:nth-child(1) { background: linear-gradient(135deg,#8ed26a,#5bad2f); margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg,#f2c94c,#e0a93b); }
.avatars span:nth-child(3) { background: linear-gradient(135deg,#7fc4e8,#4a90c2); }
.avatars span:nth-child(4) { background: linear-gradient(135deg,#1c401d,#3a6b35); }
.hero-proof p { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- Phone ---------- */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; z-index: 2;
  width: 320px; padding: 12px;
  background: linear-gradient(160deg, #1e1e1e, #2b2b2b);
  border-radius: 46px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.06);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0d0d0d; border-radius: 100px; z-index: 3;
}
.phone-screen {
  background: var(--cream); border-radius: 36px;
  padding: 26px 20px 20px; min-height: 540px;
  display: flex; flex-direction: column;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.phone-badge {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-deep); color: var(--green-bright);
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.phone-greet { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.phone-greet-sub { color: var(--muted); font-size: 16px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.chip {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 13px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.chip:nth-child(odd)  { background: var(--green-mist); }
.chip:nth-child(3n)   { background: #fdf6e0; }
.chip:hover { transform: translateY(-2px); border-color: var(--green); }
.phone-input {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line);
  border-radius: 100px; padding: 13px 14px 13px 20px;
  box-shadow: var(--shadow-sm);
}
.phone-input-text { color: var(--muted); font-size: 15px; min-height: 22px; }
.phone-input-text::after { content: '▍'; color: var(--green); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.phone-shadow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 50px; border-radius: 50%;
  background: rgba(28,64,29,0.22); filter: blur(28px); z-index: 1;
}

/* ============================================================
   COMPLICATED
   ============================================================ */
.complicated { padding: 80px 0; text-align: center; }
.section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800; letter-spacing: -1.4px; line-height: 1.1;
}
.complicated-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin: 40px 0 36px;
}
.complicated-grid p {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px;
  font-size: 16px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.complicated-punch {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800;
  letter-spacing: -1px; color: var(--green);
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.kicker {
  display: inline-block; font-size: 14px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}

/* ============================================================
   HELP CARDS
   ============================================================ */
.help { padding: 70px 0; }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(91,173,47,0.35); }
.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--green-soft); font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 7px; }
.card p { font-size: 15px; color: var(--muted); }

/* ============================================================
   CHATS
   ============================================================ */
.chats { padding: 80px 0; background: var(--green-mist); }
.chat-stack { display: flex; flex-direction: column; gap: 30px; max-width: 680px; margin: 0 auto; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 78%; padding: 16px 20px; font-size: 16.5px; line-height: 1.5;
  border-radius: 22px;
}
.bubble-user {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #fff; border-bottom-right-radius: 6px; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(91,173,47,0.55);
}
.bubble-bro {
  align-self: flex-start; position: relative;
  background: #fff; color: var(--ink);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding-top: 30px;
}
.bro-tag {
  position: absolute; top: 12px; left: 20px;
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 17px; color: var(--green); line-height: 1;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist { padding: 90px 0; }
.waitlist-card {
  position: relative; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, var(--green-soft), #fff 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wordmark-big { font-size: 58px; margin-bottom: 8px; }
.waitlist-card .section-title { margin: 14px auto 28px; max-width: 460px; }
.waitlist-form {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto;
}
.waitlist-form input {
  flex: 1; font-family: inherit; font-size: 16px;
  padding: 15px 22px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(91,173,47,0.14); }
.waitlist-note { margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 500; }
.waitlist-note.success { color: var(--green); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0; text-align: center; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-tag { font-size: 16px; color: var(--muted); font-weight: 600; }
.footer-copy { font-size: 14px; color: var(--muted); opacity: 0.8; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal.in,
.chat-stack .reveal.in { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { max-width: 600px; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .complicated-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 22px 18px; }
  .bubble { max-width: 88%; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { justify-content: center; }
  .waitlist-card { padding: 40px 22px; }
}
@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr; }
}
