/* Cresco launch site — shared styles. Palette matches the app + legal pages. */
:root {
  --bg: #F9F6F1;
  --surface: #FFFFFF;
  --ink: #2E2218;
  --muted: #6B5B4E;
  --sage: #4A7260;
  --sage-dark: #3C5C4D;
  --sage-light: #E8EDE9;
  --border: #EDE8E0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(46, 34, 24, 0.04), 0 6px 18px rgba(46, 34, 24, 0.05);
  --shadow-md: 0 2px 6px rgba(46, 34, 24, 0.05), 0 18px 40px rgba(46, 34, 24, 0.10);
  --max: 1120px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* contribution-calendar cells — matches the app: logged (green) or not, plus rest days */
  --sq-empty: #E7E1D6;
  --sq-logged: #4A7260;
  --sq-rest: #E0C2A0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage); }
img { max-width: 100%; }

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

h1, h2, h3 { letter-spacing: -0.6px; line-height: 1.12; font-weight: 800; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 246, 241, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 20px;
  color: var(--sage);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.brand img { width: 55px; height: 55px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); box-shadow: var(--shadow-sm); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--sage); border: 1px solid var(--border); }
.btn-ghost:hover { box-shadow: var(--shadow-sm); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sage);
  margin: 0 0 12px;
}
.eyebrow--invert { color: rgba(255, 255, 255, 0.85); }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 90px;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(74, 114, 96, 0.10), transparent 55%),
    radial-gradient(90% 90% at 0% 10%, rgba(74, 114, 96, 0.05), transparent 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
}
.hero-copy { text-align: left; }
.hero h1 { font-size: clamp(40px, 5.4vw, 62px); margin: 0 0 18px; }
.hero .pitch { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 24px; font-size: 14px; color: var(--muted); }
.hero-meta span { color: var(--sage); font-weight: 700; }

/* ---------- contribution calendar (hero hook) ---------- */
.hero-visual { display: flex; justify-content: center; }
.contrib-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 24px 24px 20px;
  text-align: left;
}
.contrib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.contrib-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.streak-badge {
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.contrib {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.sq {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--sq-empty);
  flex: 0 0 auto;
}
.sq.logged { background: var(--sq-logged); }
.sq.rest { background: var(--sq-rest); }
/* animated fill-in: squares start collapsed, then pop in (staggered via inline delay) */
.contrib .sq { transform: scale(0.2); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.contrib.filled .sq { transform: scale(1); opacity: 1; }
.contrib-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.contrib-legend .sq { width: 12px; height: 12px; transform: none; opacity: 1; transition: none; }

/* ---------- hero shared-log feed (the hook) ---------- */
.log-feed {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.log-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 18px 18px 15px;
  text-align: left;
  animation: logIn .55s cubic-bezier(.2, .7, .3, 1) both;
}
.log-card:nth-child(1) { animation-delay: .05s; }
.log-card:nth-child(2) { animation-delay: .2s; }
.log-card:nth-child(3) { animation-delay: .35s; }
@keyframes logIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.log-card--you { border-color: var(--sage); }
.you-tag {
  position: absolute;
  top: -10px; left: 18px;
  background: var(--sage); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 10px; border-radius: 999px;
}
.log-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; flex: 0 0 auto;
}
.log-id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.log-id strong { font-size: 15px; }
.log-meta { font-size: 13px; color: var(--muted); }
.log-text { margin: 13px 0; font-size: 15px; color: var(--ink); }
.log-cheers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cheer {
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 5px 11px;
}
.cheer.on { background: var(--sage-light); border-color: transparent; color: var(--sage-dark); }
.cheer-add { font-size: 13px; font-weight: 600; color: var(--sage); padding: 5px 4px; }
.cheer-label { font-size: 12px; color: var(--muted); }

/* ---------- supporting contribution band ---------- */
.contrib-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 52px;
}
.contrib-band-copy { text-align: left; }
.contrib-band-copy .eyebrow { margin-bottom: 12px; }
.contrib-band-copy h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 14px; }
.contrib-band-copy p { color: var(--muted); font-size: 17px; margin: 0; }
.contrib-band .contrib-card { box-shadow: var(--shadow-sm); }

/* ---------- features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--sage-light);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--sage); }
.feature-card h3 { font-size: 18px; margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- segments ---------- */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.segment-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.segment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.segment-emoji {
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; background: var(--sage-light);
  margin-bottom: 14px;
}
.segment-card h3 { font-size: 18px; margin: 0 0 6px; }
.segment-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  text-align: center;
  padding: 30px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  width: 46px; height: 46px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--sage); color: #fff; font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- screenshots ---------- */
.shots { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.phone {
  width: 300px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 5px;
  box-shadow: var(--shadow-md);
}
.phone-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-placeholder { color: var(--sage); font-weight: 600; font-size: 15px; text-align: center; padding: 0 16px; opacity: .8; }
.phone-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- waitlist ---------- */
.waitlist {
  background: linear-gradient(150deg, var(--sage), var(--sage-dark));
  color: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}
.waitlist-inner { max-width: 580px; margin: 0 auto; text-align: center; padding: 60px 24px; }
.waitlist h2 { color: #fff; }
.waitlist .sub { color: rgba(255,255,255,0.88); font-size: 18px; margin: 0 0 30px; }
.waitlist-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.waitlist-fields { display: flex; gap: 12px; }
.waitlist-fields input { flex: 1; }
.waitlist-form input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.waitlist-form input::placeholder { color: #9C8E7E; }
.waitlist-form input:focus { outline: 2px solid #fff; outline-offset: 1px; }
.waitlist .btn-primary { background: var(--ink); }
.waitlist .btn-primary:hover { background: #1f1710; }
/* honeypot — visually hidden, off-screen, not display:none so bots fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: rgba(255,255,255,0.8); font-size: 13px; margin: 16px 0 0; }
.form-note a { color: #fff; }
.form-status { min-height: 22px; margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.form-status.success { color: #DDF3E7; }
.form-status.error { color: #FFE0DA; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- founder ---------- */
.founder { max-width: 720px; margin: 0 auto; text-align: center; }
.founder .quote { font-size: 21px; line-height: 1.6; color: var(--ink); margin: 0 0 22px; font-weight: 500; }
.founder .quote::before { content: "\201C"; color: var(--sage); }
.founder .quote::after { content: "\201D"; color: var(--sage); }
.founder .sign { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.socials a {
  text-decoration: none; color: var(--sage); font-weight: 600; font-size: 14px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 9px 18px;
  transition: box-shadow .15s ease, transform .08s ease;
}
.socials a:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 38px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--sage); text-decoration: none; margin-left: 18px; }
.site-footer nav a:first-child { margin-left: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-copy { text-align: center; }
  .hero .pitch { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { justify-content: center; }
  .log-feed { margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .contrib-band { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .contrib-band-copy { text-align: center; }
  .contrib-band .contrib-card { margin: 0 auto; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .waitlist-fields { flex-direction: column; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .waitlist-inner { padding: 48px 20px; }
}
