/* Heystack marketing site. Tokens from the Orchard brand package (heystack theme). */
:root {
  --cream: #fbfff5;
  --mildew: #f2fbe9;
  --mint-pale: #bcdfc9;
  --trees: #4ea36d;
  --dg: #345540;
  --ink: #1a2b20;
  --lilac: #c7cbff;
  --mint: #c3e8db;
  --sand: #e8e0d2;
  --taupe: #5a4d47;
  --bad: #a63d2f;
  --font-body: Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Young Serif", Georgia, "Times New Roman", serif;
  --max: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--dg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(38px, 5.2vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 22px; }
h1 .alt, h2 .alt { color: var(--trees); }
p { max-width: 62ch; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 255, 245, 0.9);
  backdrop-filter: saturate(1.3) blur(10px);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.site-header .logo img { height: 28px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-left: 24px; font-size: 14.5px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--trees); }
.site-header .actions { margin-left: auto; display: flex; gap: 10px; }

/* --- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--dg); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--dg); border-color: var(--dg); }
.btn-outline:hover { background: rgba(52, 85, 64, 0.06); }
.btn-light { background: #fff; color: var(--dg); }
.btn-light:hover { background: var(--mildew); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

/* --- hero ------------------------------------------------------------- */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero h1 { color: var(--trees); }
.hero h1 .ink { color: var(--dg); display: block; }
.hero .lead { font-size: 17px; margin: 18px 0 26px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .arrow { width: 92px; margin-left: 8px; color: var(--trees); }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--taupe); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; width: 100%; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-photo {
  position: absolute; left: 50%; bottom: -4%; transform: translateX(-48%);
  width: 118%; max-width: none; height: auto; object-fit: contain; object-position: bottom;
}
.hero-art { overflow: visible; }

/* The star draws itself on, then stays. One moment, on load only. */
.draw path { stroke: var(--trees); stroke-width: 16; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.draw.go path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s cubic-bezier(.5,.05,.3,1) forwards; }
.draw.go path:nth-child(2) { animation-delay: .25s; }
.draw.go path:nth-child(3) { animation-delay: .5s; }
.draw.go path:nth-child(4) { animation-delay: .7s; }
.draw.go path:nth-child(5) { animation-delay: .9s; }
.draw.go path:nth-child(6) { animation-delay: 1.05s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s ease forwards; }
.rise.d1 { animation-delay: .15s; } .rise.d2 { animation-delay: .3s; } .rise.d3 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --- products ticker -------------------------------------------------- */
.ticker { overflow: hidden; padding: 8px 0 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.pill { background: var(--mildew); border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.pill.now { background: var(--mint); }
.pill.soon { color: var(--taupe); font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- sections --------------------------------------------------------- */
.section { padding: 56px 0; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.kicker { font-size: 13px; font-weight: 600; color: var(--taupe); margin-bottom: 12px; }
.section h2 { margin-bottom: 14px; }
.section p + p { margin-top: 12px; }
.ticks { list-style: none; margin-top: 16px; display: grid; gap: 8px; font-size: 15px; }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--trees); }
.section .btn { margin-top: 22px; }

/* The relief card: jargon gets struck through as you reach it. */
.relief {
  background: var(--lilac); border-radius: 26px; aspect-ratio: 1 / 0.82;
  display: grid; place-items: center; text-align: center; padding: 32px;
}
.relief ul { list-style: none; font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); color: var(--taupe); line-height: 1.4; }
.relief ul li { position: relative; display: inline-block; }
.relief ul li::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: 3px; background: var(--taupe);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.relief.go ul li:nth-child(1)::after { transform: scaleX(1); transition-delay: .2s; }
.relief.go ul li:nth-child(2)::after { transform: scaleX(1); transition-delay: .6s; }
.relief.go ul li:nth-child(3)::after { transform: scaleX(1); transition-delay: 1s; }
.relief .sigh { font-family: var(--font-head); font-size: clamp(32px, 4vw, 46px); color: var(--dg); margin-top: 22px; position: relative; display: inline-block; opacity: 0; transition: opacity .5s ease 1.5s; }
.relief .sigh::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; border-radius: 4px; background: var(--mildew); transform: scaleX(0); transform-origin: left; transition: transform .6s ease 1.8s; }
.relief.go .sigh { opacity: 1; }
.relief.go .sigh::after { transform: scaleX(1); }

/* how it works */
.how { background: var(--mildew); border-radius: 28px; padding: 56px 40px; text-align: center; }
.how h2 { margin: 0 auto 10px; }
.how > p { margin: 0 auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; text-align: center; counter-reset: step; }
.steps li { font-size: 14px; color: var(--taupe); }
.steps li img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 14px; }
.steps strong { display: block; color: var(--dg); margin-bottom: 4px; font-size: 16px; }

.photo-block { border-radius: 24px; background: var(--sand); aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
.photo-block.tall { aspect-ratio: 5 / 4; }

/* why: the dark panel */
.why {
  background: var(--taupe); color: #fff; border-radius: 28px; padding: 56px 48px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; overflow: hidden; position: relative;
}
.why .kicker { color: rgba(255,255,255,0.7); }
.why h2 .alt { color: var(--lilac); }
.why p { color: rgba(255,255,255,0.88); }
.why .ticks li::before { background: var(--lilac); }
.why .ticks { color: rgba(255,255,255,0.92); }
.why-star { width: 100%; max-width: 380px; margin: 0 auto; }
.why-star path { stroke: var(--lilac); stroke-width: 18; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* quote */
.quote { text-align: center; padding: 72px 0 56px; }
.quote blockquote { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); max-width: 24ch; margin: 0 auto; line-height: 1.4; }
.quote blockquote .alt { color: var(--trees); }
.quote cite { display: block; font-style: normal; font-size: 14px; color: var(--taupe); margin-top: 22px; }
.quote cite strong { display: block; color: var(--dg); font-size: 15px; }

/* CTA band */
.cta {
  background: var(--dg); color: #fff; text-align: center; padding: 80px 24px; position: relative; overflow: hidden;
}
.cta::before, .cta::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  border: 90px solid var(--trees); opacity: .9;
}
.cta::before { left: -34vw; bottom: -44vw; }
.cta::after { right: -36vw; top: -44vw; }
.cta > * { position: relative; }
.cta .star { width: 44px; margin: 0 auto 20px; }
.cta h2 { max-width: 20ch; margin: 0 auto 12px; }
.cta p { margin: 0 auto 26px; color: rgba(255,255,255,0.85); }

/* footer */
.site-footer { padding: 48px 0 28px; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(52, 85, 64, 0.2); }
.site-footer .logo img { height: 30px; width: auto; }
.site-footer h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; font-size: 14px; display: grid; gap: 7px; }
.site-footer ul a { text-decoration: none; color: var(--taupe); }
.site-footer ul a:hover { color: var(--trees); }
.legal { padding-top: 24px; font-size: 12.5px; color: var(--taupe); line-height: 1.6; }
.legal strong { color: var(--dg); display: block; margin-bottom: 6px; }
.legal p { max-width: none; }
.legal .fine { margin-top: 14px; }

/* --- forms (demo + niba) ---------------------------------------------- */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { font-size: 17px; margin-top: 16px; max-width: 52ch; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; padding-top: 24px; padding-bottom: 72px; }
.form-card { background: #fff; border: 1px solid rgba(52, 85, 64, 0.14); border-radius: 24px; padding: 32px; box-shadow: 0 24px 60px rgba(52, 85, 64, 0.08); }
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { font-size: 14.5px; color: var(--taupe); margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(52, 85, 64, 0.25); background: var(--cream); color: var(--dg); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--trees); box-shadow: 0 0 0 3px rgba(78, 163, 109, 0.2); }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--taupe); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--taupe); margin: 4px 0 20px; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--trees); }
.form-card .btn { width: 100%; }
.form-error { background: #fdf1ef; color: var(--bad); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; }
.done { text-align: center; padding: 24px 8px; display: none; }
.done.show { display: block; }
.done .star { width: 48px; margin: 0 auto 14px; }
.done h2 { margin-bottom: 8px; }
.done p { margin: 0 auto; color: var(--taupe); }
.form-card.sent form { display: none; }

.aside .ticks { margin-top: 18px; }
.aside h2 { margin-bottom: 8px; }
.aside .note { margin-top: 24px; background: var(--mildew); border-radius: 18px; padding: 18px 20px; font-size: 14px; color: var(--taupe); }

/* niba */
.prize {
  background: var(--lilac); border-radius: 24px; padding: 28px; margin-top: 24px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
}
.prize .amount { font-family: var(--font-head); font-size: 44px; line-height: 1; color: var(--dg); }
.prize .amount small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--taupe); }
.prize p { font-size: 14.5px; max-width: none; }
.stand { display: flex; gap: 14px; align-items: center; margin-top: 22px; font-size: 14.5px; }
.stand .badge { background: var(--dg); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; white-space: nowrap; }

/* --- responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap, .two-up, .why, .form-layout { grid-template-columns: minmax(0, 1fr); }
  .hero .arrow { display: none; }
  .relief ul { font-size: clamp(19px, 5.4vw, 26px); }
  .relief { padding: 28px 18px; aspect-ratio: auto; min-height: 320px; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .two-up.flip > :first-child { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
  .why { padding: 40px 28px; }
  .how { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 12px; }
  .site-header .actions .btn-outline { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 24px 20px; }
  .section { padding: 40px 0; }
  .cta { padding: 64px 20px; }
  .prize { grid-template-columns: minmax(0, 1fr); }
  .site-footer .top { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .draw.go path { animation: none; stroke-dashoffset: 0; }
  .rise { animation: none; opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .relief ul li::after, .relief .sigh, .relief .sigh::after { transition: none; }
  .relief ul li::after, .relief .sigh::after { transform: scaleX(1); }
  .relief .sigh { opacity: 1; }
  html { scroll-behavior: auto; }
}
