/* The home page. One loud thing, the pitch in the hero, which is the add-on doing its
   job; everything around it stays quiet. Shared pieces come from site.css. */

.home main > section { padding: 96px 0; }
.home main > section[id] { scroll-margin-top: 76px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.home main > .hero { padding: 64px 0 88px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center;
}
.kicker { color: var(--brand); font-weight: 650; font-size: 15.5px; margin: 0 0 18px; }
.hero-title {
  font-size: clamp(54px, 6.6vw, 150px); font-stretch: 62%; font-weight: 860;
  line-height: .88; letter-spacing: -.01em; margin: 0 0 22px; max-width: 9.5ch;
  text-wrap: balance;
}
.hero .lead { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.price-from { font-weight: 600; opacity: .8; }
.price-from:empty { display: none; }
.hero-note { margin: 18px 0 0; color: var(--dim); font-size: 14.5px; max-width: 48ch; }

/* ---------- the pitch: an SBC being solved ---------- */
.demo {
  margin: 0; padding: 18px; border-radius: var(--r-lg);
  background: var(--stand); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(216px, 17vw, 330px); gap: clamp(18px, 1.4vw, 28px);
  grid-template-areas: "head head" "pitch side";
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.demo-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.demo-title { margin: 0; color: var(--dim); font-size: 14px; }
.demo-title b { display: block; color: var(--chalk); font-size: 20px; font-weight: 780; font-stretch: 78%; line-height: 1.15; }
.demo-status {
  margin: 0; padding: 6px 12px; border-radius: 6px;
  background: rgba(0, 229, 138, .12); border: 1px solid rgba(0, 229, 138, .4);
  color: var(--brand); font: 700 13.5px/1.2 var(--sans);
}
.demo-status.busy { background: var(--well); border-color: var(--line); color: var(--mute); }

.pitch-box {
  grid-area: pitch; position: relative; aspect-ratio: 400 / 340; border-radius: 12px; overflow: hidden;
  /* the cards on it scale with the pitch, so a wide screen gets a big pitch, not small cards */
  container-type: inline-size;
  background: repeating-linear-gradient(180deg, var(--turf) 0 10%, var(--turf-2) 10% 20%);
}
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--chalk-line); stroke-width: 1.6; }
.pitch-lines .spot { fill: var(--chalk-line); stroke: none; }
.squad { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.mc {
  position: absolute; left: var(--x); top: var(--y);
  /* the individual translate property, so an animation of transform leaves the centring alone */
  translate: -50% -50%;
  width: 12.5cqw; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 2cqw 2cqw 3.2cqw 3.2cqw;
  background: linear-gradient(160deg, #f7df92, #caa040 70%, #b48a2c);
  color: #2b1f04; box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mc b { font: 860 max(15px, 5.6cqw)/1 var(--sans); font-stretch: 66%; }
.mc span { font: 760 max(9px, 2.5cqw)/1.2 var(--sans); letter-spacing: .02em; }
.mc i {
  position: absolute; top: calc(100% + 1cqw); left: 50%; translate: -50% 0; white-space: nowrap;
  font: 700 max(9px, 2.4cqw)/1 var(--sans); font-style: normal; padding: .7cqw 1.4cqw; border-radius: 1.2cqw;
  background: rgba(3, 20, 12, .82); color: var(--brand);
}
.mc.buy i { color: var(--coin); }
.mc.buy i:before {
  content: ''; display: inline-block; width: max(6px, 1.6cqw); height: max(6px, 1.6cqw); margin-right: .9cqw; border-radius: 50%;
  border: 1.5px solid var(--coin); vertical-align: -.5px;
}

.demo-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; }
.demo-reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, .6vw, 12px); }
.demo-reqs li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: clamp(9px, .8vw, 16px) clamp(10px, .8vw, 16px); border-radius: var(--r-sm); background: var(--well);
  color: var(--mute); font-size: clamp(13.5px, .95vw, 18px); line-height: 1.3;
}
.demo-reqs b { color: var(--chalk); font-weight: 750; font-size: clamp(14.5px, 1vw, 19px); }
.tick { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); }
.demo-reqs li.met .tick { background: var(--brand); border-color: var(--brand); }
.demo-reqs li.met .tick:after {
  content: ''; position: absolute; left: 5.5px; top: 4.5px; width: 7px; height: 4px;
  border-left: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg);
}
.demo-reqs li:not(.met) b { color: var(--dim); }
.demo-sum { margin: auto 0 0; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.demo-sum div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.demo-sum dt { color: var(--dim); font-size: clamp(13.5px, .9vw, 17px); }
.demo-sum dd { margin: 0; font-weight: 700; font-size: clamp(14.5px, 1vw, 18px); }
.demo-sum .coins dd { color: var(--coin); font: 860 clamp(34px, 2.6vw, 52px)/1 var(--sans); font-stretch: 66%; }

/* ---------- the six tools, with the panel beside them ---------- */
.tools-grid { display: grid; grid-template-columns: minmax(0, 462px) minmax(0, 1fr); gap: clamp(56px, 6vw, 120px); align-items: start; }
.shot-rail { position: sticky; top: 96px; }
.shot-frame {
  position: relative; aspect-ratio: 462 / 762; border-radius: var(--r-lg); overflow: hidden;
  background: #11161d; border: 1px solid var(--line);
}
.shot-frame img {
  position: absolute; left: 0; top: 0; width: 100%; height: auto;
  opacity: 0; transition: opacity .35s ease;
}
.shot-frame img.on { opacity: 1; }
.tool-list { min-width: 0; }
.tool-row { padding: 34px 0 36px; border-top: 1px solid var(--line-soft); transition: border-color .3s ease; }
.tool-row:first-child { padding-top: 6px; border-top-color: transparent; }
.tool-row.active { border-top-color: var(--brand); }
.tool-row:first-child.active { border-top-color: transparent; }
.tool-row h3 { font-size: clamp(28px, 3vw, 38px); font-stretch: 68%; font-weight: 820; line-height: 1; margin: 0 0 12px; }
.tool-row p { color: var(--mute); font-size: 17px; max-width: 58ch; margin: 0; }
.shot-inline { display: none; }

/* what the tools have in common, said once under them */
.tool-notes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.tool-notes h3 { font-size: 20px; font-stretch: 80%; font-weight: 760; }
.tool-notes p { color: var(--mute); margin: 0; max-width: 56ch; }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; color: var(--mute); font-size: 15.5px; }
.ticks li:before {
  content: ''; position: absolute; left: 4px; top: 13px; width: 12px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}

/* ---------- three steps: a real sequence, so they are numbered ---------- */
.steps {
  --p: 1;
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
/* the touchline the three steps sit on, drawn in as you scroll past */
.steps:before, .steps:after {
  content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; border-radius: 2px;
}
.steps:before { background: var(--line); }
.steps:after { background: var(--brand); transform: scaleX(var(--p)); transform-origin: left center; }
.step { position: relative; padding-top: 80px; }
.step-n {
  position: absolute; top: 0; left: 0; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--night); border: 2px solid var(--brand); color: var(--brand);
  font: 860 28px/1 var(--sans); font-stretch: 66%;
}
.step h3 { font-size: 24px; font-stretch: 78%; font-weight: 780; }
.step p { color: var(--mute); margin: 0; max-width: 40ch; }

/* ---------- plans ---------- */
.plans {
  display: grid; gap: 18px; max-width: 980px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--stand);
}
.price-card.best { border: 2px solid var(--brand); padding: 27px; }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-top h3 { margin: 0; font-size: 19px; }
.save { padding: 4px 10px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font: 750 13.5px/1.3 var(--sans); }
.price { margin: 14px 0 6px; font: 860 68px/1 var(--sans); font-stretch: 62%; letter-spacing: -.01em; }
.price small { margin-left: 4px; font: 600 20px/1 var(--sans); font-stretch: 100%; color: var(--mute); letter-spacing: 0; }
.price-note { color: var(--mute); font-size: 14.5px; margin: 0 0 22px; }
.price-card .btn { margin-top: auto; width: 100%; }
.plans-fine { text-align: center; color: var(--dim); font-size: 14.5px; max-width: 62ch; margin: 20px auto 0; }
/* the risk, said where people decide, not only in the questions */
.plans-risk {
  max-width: 640px; margin: 18px auto 0; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--stand); border: 1px solid var(--line);
  color: var(--chalk); font-size: 14.5px; text-align: center;
}
.two-lists {
  display: grid; gap: 28px; max-width: 980px; margin: 40px auto 0;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.plan-list h3 { font-size: 16px; color: var(--chalk); }
.plan-list.free h3 { color: var(--mute); }
.plan-list.free .ticks li:before { border-color: var(--mute); }

.plan-needs { max-width: 980px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.plan-needs h3 { font-size: 16px; }
.dots { margin: 10px 0 0; padding-left: 20px; color: var(--mute); font-size: 15px; }
.dots li { margin: 5px 0; }
.dots li::marker { color: var(--dim); }

/* ---------- questions ---------- */
.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq-sec details { border-top: 1px solid var(--line-soft); }
.faq-sec details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-sec summary {
  display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0;
  cursor: pointer; list-style: none; font-weight: 650; font-size: 17.5px;
}
.faq-sec summary::-webkit-details-marker { display: none; }
.faq-sec summary:after { content: '+'; margin-left: auto; color: var(--brand); font: 500 26px/1 var(--sans); }
.faq-sec details[open] summary:after { content: '\2212'; }
.faq-sec details p { color: var(--mute); margin: 0 0 18px; max-width: 60ch; }

/* ---------- the free tools ---------- */
.home main > .free-sec { padding-top: 24px; }
.free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.free-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px;
  border-radius: var(--r); background: var(--stand); border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.free-card:hover { border-color: var(--brand); }
.free-card h3 { font-size: 32px; font-stretch: 68%; font-weight: 820; margin: 4px 0 0; }
.free-card p { color: var(--mute); margin: 0 0 8px; max-width: 46ch; }
.free-card .btn { margin-top: auto; }
.free-card:hover .btn { background: var(--stand-2); border-color: #36587e; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-title { max-width: 12ch; }
  .demo { max-width: 720px; }
  .tools-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shot-rail { display: none; }
  .shot-inline {
    display: block; margin-top: 20px; width: 100%; height: auto; max-width: 400px; max-height: 460px;
    object-fit: cover; object-position: top; border-radius: var(--r); border: 1px solid var(--line);
  }
  .tool-row.active { border-top-color: var(--line-soft); }
}
@media (max-width: 760px) {
  .home main > section { padding: 64px 0; }
  .home main > .hero { padding: 36px 0 56px; }
  .demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pitch" "side"; padding: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps:before, .steps:after { display: none; }
  .step { padding: 0 0 0 76px; min-height: 56px; }
  .faq-cols, .free-grid, .tool-notes { grid-template-columns: minmax(0, 1fr); }
  .price { font-size: 58px; }
}
