/* Magnety landing. One family for display (Bricolage Grotesque), one for text (Hanken Grotesk).
   Black lettering on paper, one lime signal colour: lime fills carry black text and never carries
   text on white. The only motion is the hero player demo. */

:root {
  --paper: #f6f6f3;
  --ink: #17181f;
  --smoke: #5f616c;
  --mist: #dedfd8;
  --lime: #96f16b;
  --lime-deep: #2f7a2a;
  --graphite: #23242c;
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 64px);
  --content: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 0.98;
  font-variation-settings: 'opsz' 96;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.05;
  max-width: 24ch;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
  z-index: 10;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: var(--content);
  margin: 0 auto;
}

.brand img {
  width: 132px;
}

.top-nav {
  display: none;
  gap: 22px;
  margin-left: 12px;
  font-weight: 500;
  color: var(--smoke);
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.link {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
}

.button-primary:hover {
  background: #86e759;
}

.button-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.button-large {
  padding: 15px 26px;
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .top-nav {
    display: flex;
  }
}

/* Hero */

.hero {
  display: grid;
  gap: 48px;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 96px);
  max-width: var(--content);
  margin: 0 auto;
}

.hero-copy {
  align-self: center;
}

.hero-lead {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  color: var(--smoke);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
}

/* The demo: a page as the visitor sees it, with the player and the offer that waits */

.demo {
  margin: 0;
}

.demo-page {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 22px 22px 18px;
}

.demo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.player {
  background: var(--graphite);
  border-radius: 10px;
  overflow: hidden;
}

.player-screen {
  aspect-ratio: 16 / 9;
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 10%, #4a4c5c 0, transparent 55%),
    radial-gradient(90% 80% at 85% 100%, #3d6b2f 0, transparent 60%), var(--graphite);
}

.player-time {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.player-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
}

.player-bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.player-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--lime);
}

.player-bar-pitch {
  position: absolute;
  left: 52%;
  top: -3px;
  width: 2px;
  height: 14px;
  background: #fff;
}

.demo-offer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px dashed var(--mist);
  opacity: 0.35;
  transform: translateY(6px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    border-color 0.5s ease;
}

.demo-offer.is-revealed {
  opacity: 1;
  transform: none;
  border-color: var(--lime-deep);
  border-style: solid;
}

.demo-offer-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.demo-offer-button {
  font-size: 0.9rem;
}

.demo-events {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}

.demo-events li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--mist);
  color: var(--smoke);
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.demo-events li.is-sent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.demo figcaption {
  margin-top: 14px;
  color: var(--smoke);
  font-size: 0.92rem;
  max-width: 52ch;
}

/* Sections */

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

.section-head p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--smoke);
  max-width: 58ch;
}

/* The rail: the funnel from the click to the sale, one station per event */

.rail-section {
  padding: clamp(40px, 7vw, 96px) 0;
  border-top: 1px solid var(--mist);
}

.rail {
  list-style: none;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  max-width: var(--content);
  display: grid;
  gap: 28px;
  position: relative;
}

.rail li {
  position: relative;
  padding-left: 52px;
}

.rail li::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -28px;
  width: 2px;
  background: var(--mist);
}

.rail li:last-child::before {
  display: none;
}

.rail-step {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.rail h3 {
  margin-top: 6px;
}

.rail p {
  margin-top: 8px;
  color: var(--smoke);
  font-size: 0.98rem;
}

.event {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
}

.rail-foot {
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  max-width: var(--content);
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .rail {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  .rail li {
    padding-left: 0;
    padding-top: 56px;
  }

  .rail li::before {
    left: 44px;
    right: -24px;
    top: 17px;
    bottom: auto;
    height: 2px;
    width: auto;
  }
}

/* Player features */

.player-section {
  padding: clamp(40px, 7vw, 96px) 0;
  border-top: 1px solid var(--mist);
}

.features {
  max-width: var(--content);
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 18px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--mist);
  border-radius: 14px;
  background: #fff;
}

.feature p {
  margin-top: 10px;
  color: var(--smoke);
  font-size: 0.98rem;
}

.bars {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--smoke);
}

.bar-row i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--mist);
  position: relative;
  overflow: hidden;
}

.bar-row i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--lime);
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-wide {
    grid-column: span 2;
  }
}

/* Analytics */

.analytics-section {
  border-top: 1px solid var(--mist);
  padding: clamp(40px, 7vw, 96px) var(--gutter);
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.analytics-copy p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--smoke);
}

.retention {
  margin: 0;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 18px 18px 12px;
}

.retention svg {
  width: 100%;
  height: auto;
  display: block;
}

.retention .grid line {
  stroke: var(--mist);
  stroke-width: 1;
}

.retention .area {
  fill: url(#fill);
}

.retention .line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}

.retention .pitch {
  stroke: var(--lime-deep);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.retention .drop {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.retention .label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}

.retention .axis {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--smoke);
}

.retention figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--smoke);
}

@media (min-width: 900px) {
  .analytics-section {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }
}

/* Calculator */

.calc-section {
  border-top: 1px solid var(--mist);
  padding: clamp(40px, 7vw, 96px) 0;
  background: #fff;
}

.calc {
  max-width: var(--content);
  margin: 36px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 28px;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-field span {
  font-weight: 500;
  color: var(--smoke);
}

.calc-field output {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.calc input[type='range'] {
  width: 100%;
  accent-color: var(--lime-deep);
}

.calc-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.calc-result > div {
  padding: 20px;
  border: 1px solid var(--mist);
  border-radius: 14px;
}

.calc-result .calc-highlight {
  background: var(--lime);
  border-color: var(--lime);
}

.calc-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.calc-label {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 500;
}

.calc-note {
  max-width: var(--content);
  margin: 28px auto 0;
  padding: 0 var(--gutter);
  color: var(--smoke);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .calc {
    grid-template-columns: 1fr 1fr;
  }

  .calc-result {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The rest of the product */

.rest-section {
  border-top: 1px solid var(--mist);
  padding: clamp(40px, 7vw, 96px) 0;
}

.rest {
  list-style: none;
  max-width: var(--content);
  margin: 36px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 28px 40px;
}

.rest li {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.rest p {
  margin-top: 8px;
  color: var(--smoke);
  font-size: 0.98rem;
}

@media (min-width: 720px) {
  .rest {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .rest {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Final call */

.cta-section {
  margin: 0 var(--gutter);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  max-width: calc(var(--content) - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  margin-top: 14px;
  color: #c9cad2;
  font-size: 1.1rem;
}

.cta-section .button {
  margin-top: 28px;
}

/* FAQ */

.faq-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.faq {
  margin: 28px 0 0;
  display: grid;
  gap: 0;
}

.faq > div {
  border-top: 1px solid var(--mist);
  padding: 22px 0;
  display: grid;
  gap: 8px;
}

.faq dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.faq dd {
  margin: 0;
  color: var(--smoke);
  max-width: var(--measure);
}

@media (min-width: 900px) {
  .faq > div {
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
  }
}

/* Footer */

.foot {
  border-top: 1px solid var(--mist);
  max-width: var(--content);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  display: grid;
  gap: 14px;
  color: var(--smoke);
  font-size: 0.95rem;
}

.foot img {
  width: 120px;
}

.foot nav {
  display: flex;
  gap: 18px;
}

.foot nav a {
  color: var(--ink);
}

.foot-legal {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .demo-offer,
  .demo-events li {
    transition: none;
  }
}
