/* ============================================================================
   ChilliPopup landing page styles
   Brand palette pulled from the dashboard logo + UI:
     chili red-orange #f93a00 (primary) · gold #faba05 · green #76ae3d
   Light theme · squared buttons (no pills) · Quicksand display + Inter body
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* brand */
  --brand:        #f93a00;
  --brand-600:    #e63500;
  --brand-700:    #cc2f00;
  --gold:         #faba05;
  --gold-soft:    #ffd166;
  --green:        #76ae3d;
  --purple:       #7c3aed;   /* gamification */
  --purple-soft:  #f2ecff;

  /* warm neutrals */
  --ink:          #221611;   /* headings: warm near-black */
  --body:         #5c4f48;   /* body text: warm gray */
  --muted:        #8a7c74;   /* captions */
  --surface:      #ffffff;
  --cream:        #fff7f3;   /* alt section bg */
  --peach-50:     #fff4ef;
  --peach-100:    #ffe7dd;
  --peach-200:    #ffd6c6;
  --border:       #f3e6de;
  --border-strong:#ecd9ce;

  /* effects */
  --shadow-sm:  0 1px 2px rgba(120, 60, 30, .06);
  --shadow:     0 10px 30px -12px rgba(180, 70, 30, .18);
  --shadow-lg:  0 30px 60px -20px rgba(180, 70, 30, .28);
  --shadow-brand: 0 16px 34px -12px rgba(249, 58, 0, .45);

  /* shape: modest radii, never pills */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
code { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 800px; }

/* ----------------------------------------------------------- Reveal anim */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- Buttons */
/* Ported verbatim from the dashboard login/signup primary button (.main-btn-2):
   flat chili fill at rest, 1.5px border, 8px radius; on hover the button lifts
   up-and-right into a hard offset shadow (the "sticker peel"), darkening to
   #d63200. Every filled CTA on the page shares that exact motion. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.5em;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: 8px;                  /* squared, not pill; matches main-btn-2 */
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 18px; }
.btn--block { width: 100%; }

.btn--primary {
  color: #fff;
  background-color: var(--brand);
  border-color: var(--brand);
}
.btn--primary:hover {
  background-color: #d63200;
  border-color: var(--brand);
  box-shadow: -3px 3px 0 0 #7a1c00;
  transform: translate(3px, -3px);
}

.btn--soft {
  color: var(--brand-700);
  background-color: var(--peach-100);
  border-color: var(--peach-100);
}
.btn--soft:hover {
  background-color: var(--peach-200);
  border-color: var(--peach-200);
  box-shadow: -3px 3px 0 0 #f4926f;
  transform: translate(3px, -3px);
}

.btn--ghost { color: var(--ink); border-color: transparent; padding-inline: 14px; }
.btn--ghost:hover { color: var(--brand); }

.btn--light {
  color: var(--brand-700);
  background-color: #fff;
  border-color: #fff;
}
.btn--light:hover {
  box-shadow: -3px 3px 0 0 #7a1c00;
  transform: translate(3px, -3px);
}

.btn--outline-light {
  color: #fff;
  background-color: transparent;
  border-color: rgba(255, 255, 255, .6);
}
.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, .12);
  box-shadow: -3px 3px 0 0 rgba(0, 0, 0, .28);
  transform: translate(3px, -3px);
}

/* Press the sticker back down on click (placed after :hover so it wins). */
.btn--primary:active,
.btn--soft:active,
.btn--light:active,
.btn--outline-light:active { transform: translate(0, 0); box-shadow: none; }

/* --------------------------------------------------------------- Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
  padding: 6px 12px;
  border-radius: var(--r-sm);
}
.eyebrow--center { margin-inline: auto; }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(249,58,0,.18);
}

.u-mark {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.u-mark::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .04em;
  height: .26em;
  background: var(--gold-soft);
  opacity: .55;
  border-radius: 3px;
  z-index: -1;
}

/* ---------------------------------------------------------------- Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.header.is-stuck {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { filter: drop-shadow(0 4px 8px rgba(249,58,0,.25)); }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand__name-pop { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--body);
  transition: color .15s;
}
.nav__link:hover { color: var(--brand); }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(1100px 460px at 78% -8%, var(--peach-50) 0%, transparent 62%),
    radial-gradient(800px 420px at 6% 8%, #fffaf0 0%, transparent 60%);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(249,58,0,.16), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero__title {
  font-size: clamp(38px, 5.4vw, 60px);
  margin: 18px 0 18px;
  letter-spacing: -.025em;
}
.hero__sub {
  font-size: 19px;
  color: var(--body);
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin: 30px 0 22px;
  flex-wrap: wrap;
}
.hero__ticks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.hero__ticks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.tick {
  width: 16px; height: 16px;
  flex: none;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* hero art: browser + popup */
.hero__art { position: relative; }
.browser {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.hero__art:hover .browser { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--peach-200); }
.browser__dot:nth-child(1){ background:#ff5f57; } .browser__dot:nth-child(2){ background:#febc2e; } .browser__dot:nth-child(3){ background:#28c840; }
.browser__url {
  margin-left: 8px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 5px 12px;
}
.browser__viewport {
  position: relative;
  padding: 26px;
  min-height: 340px;
  background:
    radial-gradient(420px 200px at 70% 0%, var(--peach-50), transparent 70%),
    #fff;
}
/* faux page content */
.faux { display: flex; flex-direction: column; gap: 14px; filter: blur(.4px); opacity: .65; }
.faux__line { height: 13px; border-radius: 5px; background: var(--peach-100); width: 86%; }
.faux__line--lg { height: 22px; width: 60%; background: var(--peach-200); }
.faux__line--sm { width: 42%; }
.faux__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 8px; }
.faux__card { height: 70px; border-radius: 10px; background: linear-gradient(135deg, var(--peach-50), var(--peach-100)); }

/* the popup */
.popup-demo {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: min(300px, 78%);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -16px rgba(120,40,20,.4);
  padding: 22px 22px 20px;
  animation: pop-in .7s var(--ease) .25s both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.popup-demo__close {
  position: absolute; top: 10px; right: 12px;
  font-size: 20px; line-height: 1;
  color: var(--muted);
}
.popup-demo__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  color: var(--brand-700);
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.popup-demo__title { font-size: 20px; line-height: 1.2; margin-bottom: 7px; }
.popup-demo__text { font-size: 13.5px; color: var(--body); margin-bottom: 14px; }
.popup-demo__field {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.popup-demo__placeholder { color: var(--muted); }
.popup-demo__btn {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-brand);
}
.popup-demo__fine { text-align: center; font-size: 11px; color: var(--muted); margin-top: 9px; }

/* floating chips */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 11px 15px;
}
.chip strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); line-height: 1.1; }
.chip span { font-size: 12px; color: var(--muted); }
.chip__icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 17px;
}
.chip__icon--up { background: rgba(118,174,61,.14); }
.chip__icon--up svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip__icon--star { background: var(--peach-50); }
.chip--conv { top: 30px; left: -34px; animation: float 5s ease-in-out infinite; }
.chip--sub { bottom: 36px; left: -26px; animation: float 5.6s ease-in-out infinite .6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ----------------------------------------------------------- Trust strip */
.trust { padding: 8px 0 4px; }
.trust__label {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__label { font-size: 14px; color: var(--body); margin-top: 8px; }

/* -------------------------------------------------------------- Sections */
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__title { font-size: clamp(28px, 3.8vw, 42px); margin: 16px 0 14px; }
.section__lead { font-size: 18px; color: var(--body); }
.section__lead code {
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--brand-700);
}

/* ------------------------------------------------------------ Feature grid */
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
/* 5 cards: 3 across, then 2 centred underneath */
.grid--content { grid-template-columns: repeat(6, 1fr); }
.grid--content > .card { grid-column: span 2; }
.grid--content > .card:nth-child(4) { grid-column: 2 / span 2; }
.grid--content > .card:nth-child(5) { grid-column: 4 / span 2; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--peach-200);
}
.card__icon {
  width: 50px; height: 50px;
  border-radius: var(--r);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card__icon--red   { background: var(--peach-50); }
.card__icon--red svg   { stroke: var(--brand); }
.card__icon--gold  { background: #fff6e0; }
.card__icon--gold svg  { stroke: #e0a000; }
.card__icon--green { background: #eef6e4; }
.card__icon--green svg { stroke: var(--green); }
.card__icon--purple { background: var(--purple-soft); }
.card__icon--purple svg { stroke: var(--purple); }
.card__title { font-size: 20px; margin-bottom: 9px; }
.card__text { font-size: 15px; color: var(--body); }

/* ------------------------------------------------------------ How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--r);
  box-shadow: var(--shadow-brand);
}
.step__title { font-size: 21px; margin-bottom: 9px; }
.step__text { font-size: 15px; color: var(--body); }
.step__arrow {
  display: grid; place-items: center;
  font-size: 26px;
  color: var(--peach-200);
  font-weight: 700;
}

/* ---------------------------------------------------------------- Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split + .split { margin-top: 96px; }
.split--reverse .split__copy { order: 2; }
.split--center { align-items: center; }
.split__title { font-size: clamp(26px, 3.2vw, 36px); margin: 16px 0 14px; }
.split__text { font-size: 17px; color: var(--body); margin-bottom: 22px; }
.ticklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
/* The tick is taken out of the text flow so an item reads as one sentence:
   as a flex item, a leading <strong> became its own column and the rest of the
   line staircased away from it. */
.ticklist li { display: block; position: relative; padding-left: 27px; font-size: 16px; color: var(--body); }
.ticklist .tick { position: absolute; left: 0; top: 4px; }
.ticklist strong { color: var(--ink); }

/* rules card */
.rules-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 12px;
}
.rules-card__head {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  padding: 12px 14px 14px;
  font-size: 15px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--cream);
  margin-bottom: 10px;
}
.rule:last-child { margin-bottom: 0; }
.rule__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 18px;
}
.rule__body { flex: 1; }
.rule__body strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.rule__body span { font-size: 13px; color: var(--muted); }
.toggle {
  width: 40px; height: 23px;
  border-radius: 6px;
  background: var(--peach-100);
  position: relative;
  flex: none;
  transition: background .2s;
}
.toggle span {
  position: absolute; top: 3px; left: 3px;
  width: 17px; height: 17px;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.toggle--on { background: var(--brand); }
.toggle--on span { transform: translateX(17px); }

/* analytics card */
.analytics-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 24px;
}
.analytics-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.analytics-card__kpi { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--ink); line-height: 1; }
.analytics-card__kpilabel { font-size: 13px; color: var(--muted); margin-top: 5px; }
.analytics-card__pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--green);
  background: #eef6e4;
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.analytics-card__pill svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart { width: 100%; height: 120px; overflow: visible; }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 760; stroke-dashoffset: 760; }
.chart.is-in .chart__line { animation: draw 1.6s var(--ease) forwards; }
.chart__area { opacity: 0; transition: opacity .8s ease .5s; }
.chart.is-in .chart__area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.analytics-card__legend {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin-top: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot--red { background: var(--brand); margin-left: 4px; }
.dot--gold { background: var(--gold); margin-left: 14px; }
.analytics-card__rate { margin-left: auto; }
.analytics-card__rate strong { color: var(--ink); font-family: var(--font-head); }

/* ----------------------------------------------------- Gamification band */
.section--dark-warm {
  background:
    radial-gradient(700px 360px at 88% 12%, rgba(250,186,5,.16), transparent 60%),
    linear-gradient(160deg, #2a1812 0%, #3a1d12 100%);
}
.section--dark-warm .split__title,
.section--dark-warm .ticklist strong { color: #fff; }
.section--dark-warm .split__text,
.section--dark-warm .ticklist li { color: #f4d9cd; }
.section--dark-warm .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--gold-soft); }

.split__art--wheel { display: grid; place-items: center; }
.wheel-stage { position: relative; text-align: center; }
.wheel {
  width: clamp(260px, 32vw, 340px);
  height: clamp(260px, 32vw, 340px);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.4));
  border-radius: 50%;
}
#wheelRot { transform-origin: 100px 100px; transition: transform 4.4s cubic-bezier(.17,.67,.21,1); }
.wheel-pointer {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid #fff;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.3));
  z-index: 3;
}
.wheel__btn { margin-top: 26px; }
.wheel__result {
  margin-top: 16px;
  min-height: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 16px;
}

/* --------------------------------------------------------- Installation */
.install { display: flex; flex-direction: column; gap: 24px; }
.code {
  background: #2a1812;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #4a2a1c;
  width: 100%;
  max-width: 640px;
  align-self: center;
}
.code__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  background: #371e15;
  border-bottom: 1px solid #4a2a1c;
}
.code__file { font-size: 13px; color: #d9b6a6; font-family: var(--font-head); font-weight: 600; }
.code__copy {
  font-size: 12.5px; font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.1);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-head);
  transition: background .15s;
}
.code__copy:hover { background: rgba(255,255,255,.2); }
.code__copy.is-copied { background: var(--green); }
.code__body { margin: 0; padding: 22px; overflow-x: auto; }
.code__body code { font-size: 13.5px; line-height: 1.85; color: #f4d9cd; white-space: pre; }
.t-tag { color: #ff8a5c; } .t-attr { color: var(--gold-soft); } .t-str { color: #9fd17a; } .t-pun { color: #c79; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.platform {
  display: flex; align-items: center; gap: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.platform:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.platform__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--peach-50);
  flex: none;
}
.platform__icon svg { width: 24px; height: 24px; display: block; }
.platform__icon--any     { background: #ffe7dd; }
.platform__icon--wp      { background: #e7f0f7; }
.platform__icon--shopify { background: #edf6e5; }
.platform__icon--wix     { background: #e6efff; }
.platform__icon--bigc    { background: #ececf1; }
.platform__icon--gtm     { background: #e6f0fc; }
.platform strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.platform strong em { color: var(--muted); font-style: normal; font-size: 12px; font-weight: 600; }
.platform span { font-size: 13.5px; color: var(--body); }

/* -------------------------------------------------------------- Pricing */
.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price--featured {
  border: 1.5px solid var(--brand);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff 0%, var(--peach-50) 100%);
}
.price__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .03em;
  color: #fff;
  background: var(--brand);
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-brand);
}
.price__name { font-size: 21px; margin-bottom: 10px; }
.price__amount { font-family: var(--font-head); font-weight: 700; font-size: 44px; color: var(--ink); line-height: 1; }
.price__cur { font-size: 22px; vertical-align: super; margin-right: 2px; color: var(--body); }
.price__per { font-size: 16px; font-weight: 600; color: var(--muted); }
.price__note { font-size: 14px; color: var(--muted); margin: 8px 0 20px; }
.price__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.price__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--body); }
.price__list .tick { margin-top: 4px; }

/* ------------------------------------------------------------------ FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--peach-200); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.faq__plus::before { width: 14px; height: 2.4px; transform: translate(-50%,-50%); }
.faq__plus::after { width: 2.4px; height: 14px; transform: translate(-50%,-50%); }
.faq__item[open] .faq__plus::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { padding: 0 0 20px; font-size: 15.5px; color: var(--body); max-width: 90%; }

/* -------------------------------------------------------------- CTA band */
.cta-band {
  padding: 84px 0;
  background:
    radial-gradient(600px 300px at 80% 0%, #ff6326 0%, transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
}
.cta-band__inner { text-align: center; max-width: 660px; margin-inline: auto; }
.cta-band__title { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta-band__text { color: rgba(255,255,255,.92); font-size: 19px; margin-bottom: 30px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- Footer */
.footer { background: #1f140f; color: #c9b6ac; padding: 64px 0 30px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 50px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .brand__name { color: #fff; }
.footer__tagline { font-size: 15px; color: #a8978d; margin-top: 14px; max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14.5px; color: #b6a59b; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  font-size: 13.5px;
  color: #8c7a70;
  flex-wrap: wrap;
  gap: 10px;
}


/* ------------------------------------------------------- Blog highlights */
/* Lifted verbatim from the hub at chillipopup.com/blog so the homepage band and
   the blog itself are the same component, then scoped to #blog so the generic
   class names (.tag, .post-meta, .post-card) cannot collide with the rest of the
   site. Uses the shared design tokens, which both repos already define alike. */
#blog .blog-head { max-width: 1080px; margin: 0 auto 24px; }
#blog .section-label {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}
#blog .blog-h2 { font-size: 26px; margin: 0 0 24px; color: var(--ink); }
#blog .blog-h2--later { margin-top: 64px; }
#blog .blog-inner { max-width: 1080px; margin: 0 auto; }

#blog .featured {
  display: flex; gap: 34px; align-items: center;
  border: 2px solid var(--border-strong); border-radius: 18px;
  padding: 30px 34px; text-decoration: none; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
#blog .featured:hover {
  border-color: var(--peach-200);
  box-shadow: 0 22px 44px -26px rgba(249,58,0,.5);
  transform: translateY(-2px);
}
#blog .featured-text { flex: 1 1 0; min-width: 0; }
#blog .featured-media { flex: 0 0 auto; width: 400px; }
#blog .featured-media img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 14px 30px -18px rgba(120,60,30,.4);
}
#blog .tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-700); background: var(--peach-100);
  padding: 5px 11px; border-radius: 7px; margin-bottom: 12px;
}
#blog .featured h3 { font-size: 27px; line-height: 1.25; margin: 0 0 12px; color: var(--ink); }
#blog .featured p { color: var(--body); margin: 0 0 16px; font-size: 17px; }
#blog .post-meta { color: var(--muted); font-size: 15px; }
#blog .read-more {
  display: inline-block; margin-top: 16px; color: var(--brand-600);
  font-family: var(--font-head); font-weight: 700;
}

#blog .post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
#blog .post-card {
  display: flex; flex-direction: column;
  border: 2px solid var(--border-strong); border-radius: 16px;
  padding: 24px 26px; text-decoration: none; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
#blog .post-card:hover {
  border-color: var(--peach-200);
  box-shadow: 0 16px 34px -20px rgba(249,58,0,.45);
  transform: translateY(-2px);
}
#blog .post-card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 10px; color: var(--ink); }
#blog .post-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
#blog .post-card .post-meta { margin-top: auto; }
#blog .blog-more { text-align: center; margin-top: 38px; }

@media (max-width: 860px) {
  #blog .featured { flex-direction: column-reverse; align-items: stretch; gap: 22px; padding: 24px; }
  #blog .featured-media { width: 100%; }
  #blog .featured h3 { font-size: 22px; }
}
@media (max-width: 620px) { #blog .post-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: none; text-align: center; margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__ticks { justify-content: center; }
  .browser { transform: none; }
  .hero__art:hover .browser { transform: none; }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .grid--content { grid-template-columns: repeat(2, 1fr); }
  .grid--content > .card,
  .grid--content > .card:nth-child(4),
  .grid--content > .card:nth-child(5) { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step__arrow { transform: rotate(90deg); }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__copy { order: 0; }
  .split__art { max-width: 480px; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__link { padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav.is-open .nav__cta { flex-direction: column; margin: 12px 0 0; gap: 10px; }
  .nav.is-open .nav__cta .btn { width: 100%; }

  .section { padding: 68px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; padding: 28px 20px; }
  .grid--features { grid-template-columns: 1fr; }
  .grid--content { grid-template-columns: 1fr; }
  .grid--content > .card,
  .grid--content > .card:nth-child(4),
  .grid--content > .card:nth-child(5) { grid-column: auto; }
  .grid--pricing { grid-template-columns: 1fr; gap: 28px; }
  .price--featured { order: -1; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .chip--conv { top: 14px; left: auto; right: 8px; }
  .chip--sub { bottom: 14px; left: 8px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .platforms { grid-template-columns: 1fr; }
}

/* ===================================================================
   Widgets nav dropdown
   =================================================================== */
.nav__drop { position: relative; display: flex; align-items: center; }
.nav__droptoggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--body); transition: color .15s;
}
.nav__droptoggle:hover,
.nav__drop:hover .nav__droptoggle,
.nav__drop:focus-within .nav__droptoggle { color: var(--brand); }
.nav__caret { width: 11px; height: 11px; transition: transform .2s var(--ease); }
.nav__drop:hover .nav__caret,
.nav__drop:focus-within .nav__caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: 100%; left: 50%;
  margin-top: 14px;
  transform: translateX(-50%) translateY(8px);
  width: 306px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 120;
}
/* invisible hover bridge so the menu doesn't drop while crossing the gap */
.nav__menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__menuitem { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; transition: background .14s; }
.nav__menuitem:hover { background: var(--peach-50); }
.nav__menuicon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.nav__menuicon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav__menuicon--red { background: var(--peach-50); color: var(--brand); }
.nav__menuicon--gold { background: #fff6e0; color: #e0a000; }
.nav__menuicon--green { background: #eef6e4; color: var(--green); }
.nav__menuicon--navy { background: #eef1fb; color: #3b5bdb; }
.nav__menutext { display: flex; flex-direction: column; line-height: 1.25; }
.nav__menutext strong { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.nav__menutext span { font-size: 12.5px; color: var(--muted); }

/* ===================================================================
   Widget sub-pages
   =================================================================== */
.wpage-hero { position: relative; padding: 58px 0 72px; overflow: hidden; }
.wpage-hero__glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 460px; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(249,58,0,.14), transparent 70%);
}
.wpage-hero .container { position: relative; z-index: 1; }
.wpage-hero__copy { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.wpage-hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.06;
  color: var(--ink); letter-spacing: -.02em; margin: 18px 0 16px;
}
.wpage-hero__sub { font-size: clamp(17px, 2vw, 19px); color: var(--body); max-width: 620px; margin: 0 auto; }
.hero__actions--center { justify-content: center; margin-top: 30px; }

.shot { max-width: 1000px; margin: 0 auto; }
.shot__frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.shot__frame img { width: 100%; height: auto; display: block; }
.shot__cap { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 16px; max-width: 640px; margin-inline: auto; }

/* two-column checklist for the capabilities block */
.ticklist--two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px;
  max-width: 860px; margin: 0 auto;
}

/* "great for" use-case tags */
.usecases { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; }
.usecases__label { font-family: var(--font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.tag { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-sm); background: var(--peach-50); border: 1px solid var(--peach-100); color: var(--brand-700); font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }

/* cross-links to the other widgets */
.wlinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wlink { display: flex; align-items: center; gap: 13px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.wlink:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wlink__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.wlink__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wlink__t { display: flex; flex-direction: column; line-height: 1.3; }
.wlink__t strong { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.wlink__t span { font-size: 12.5px; color: var(--muted); }

/* clickable content-type cards on the home page */
a.card { text-decoration: none; color: inherit; }
.card__more { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--brand-700); }
.card:hover .card__more { color: var(--brand); }

/* quiz mock (no screenshot available) */
.quiz-stage { background: linear-gradient(135deg, #fff1ec, #ffe7dd); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 48px 24px; max-width: 1000px; margin: 0 auto; }
.quizmock { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 30px 26px; max-width: 460px; margin: 0 auto; }
.quizmock__step { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.quizmock__bar { height: 6px; border-radius: 4px; background: var(--peach-100); margin-bottom: 20px; overflow: hidden; }
.quizmock__bar span { display: block; height: 100%; width: 50%; background: var(--brand); border-radius: 4px; }
.quizmock__q { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--ink); margin: 0 0 18px; }
.quizmock__opts { display: flex; flex-direction: column; gap: 10px; }
.quizmock__opts li { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1.5px solid var(--border-strong); border-radius: 10px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--body); }
.quizmock__opts li.is-sel { border-color: var(--brand); background: var(--peach-50); color: var(--ink); }
.quizmock__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; position: relative; }
.quizmock__opts li.is-sel .quizmock__radio { border-color: var(--brand); }
.quizmock__opts li.is-sel .quizmock__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.quizmock__next { margin-top: 22px; text-align: center; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px; padding: 13px; border-radius: var(--r-sm); box-shadow: var(--shadow-brand); }

/* ------------------------------------------- Homepage screenshot blocks */
/* A block that carries the section on its own rather than sitting in a
   `.split__art` column: wider than `.shot`, and spaced from what precedes it. */
.shot--wide { max-width: 1060px; margin-inline: auto; margin-top: 52px; }
.ticklist.shot--wide { max-width: 900px; margin-bottom: 0; }
/* A shot that follows a card grid or checklist inside the same section. */
.shot--spaced { margin-top: 52px; }

/* Four-game roster inside the dark gamification band. */
.games { margin-top: 78px; }
.games__title {
  font-family: var(--font-head); font-weight: 700; font-size: 26px;
  color: #fff; text-align: center; letter-spacing: -.01em; margin-bottom: 26px;
}
.games__list { max-width: 820px; }
.games__shot { margin-top: 46px; }
.section--dark-warm .shot__frame { border-color: rgba(255,255,255,.14); }
.section--dark-warm .shot__cap { color: #f4d9cd; }
.section--dark-warm .shot__cap a { color: var(--gold-soft); }

@media (max-width: 980px) {
  .wlinks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ticklist--two { grid-template-columns: 1fr; gap: 13px; }
  /* dropdown expands inline inside the mobile menu */
  .nav.is-open .nav__drop { flex-direction: column; align-items: stretch; }
  .nav.is-open .nav__droptoggle { justify-content: space-between; padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav.is-open .nav__caret { transform: none; }
  .nav.is-open .nav__menu { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; width: auto; margin: 4px 0 8px; padding: 4px 0 4px 6px; border: 0; box-shadow: none; }
  .nav.is-open .nav__menu::before { display: none; }
}
@media (max-width: 560px) {
  .wlinks { grid-template-columns: 1fr; }
}
