:root {
  --ink: #111111;
  --mute: #5a5a56;
  --paper: #ececea;
  --deep: #3c3c3a;
  --fluo: #c8f54a;
  --card: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% 18%, #f7f7f5 0%, transparent 62%),
    linear-gradient(180deg, #f2f2f0 0%, #c7c7c3 42%, #9a9a96 100%);
}

.grain,
.halo {
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.grain {
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.halo {
  width: min(78vw, 820px);
  height: min(78vw, 820px);
  border-radius: 50%;
  filter: blur(64px);
}

.halo-a {
  left: 50%;
  top: 58%;
  background: radial-gradient(
    circle,
    rgba(200, 245, 74, 0.72) 0%,
    rgba(200, 245, 74, 0.22) 42%,
    transparent 70%
  );
  animation: halo-a 14s ease-in-out infinite;
}

.halo-b {
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  left: 18%;
  top: 72%;
  background: radial-gradient(
    circle,
    rgba(200, 245, 74, 0.5) 0%,
    rgba(180, 230, 60, 0.12) 50%,
    transparent 72%
  );
  animation: halo-b 18s ease-in-out infinite;
}

@keyframes halo-a {
  0%,
  100% {
    transform: translate(-52%, -38%) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(-40%, -58%) scale(1.22);
    opacity: 0.95;
  }
}

@keyframes halo-b {
  0%,
  100% {
    transform: translate(8%, 0) scale(0.92);
    opacity: 0.4;
  }
  50% {
    transform: translate(42%, -28%) scale(1.18);
    opacity: 0.75;
  }
}

.top,
main,
footer,
.legal {
  position: relative;
  z-index: 1;
}

.top {
  padding: 36px 24px 0;
  display: flex;
  justify-content: center;
}

.wordmark {
  width: min(196px, 46vw);
  height: auto;
}

.hero {
  text-align: center;
  padding: 56px 24px 0;
}

.hero h1,
.how h2,
.stats h2,
.measure h2,
.cta h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
}

.hero p {
  margin-top: 14px;
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 10px 18px 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}

.appstore svg {
  flex-shrink: 0;
}

.appstore span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.appstore small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.appstore strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.appstore:hover {
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(255, 255, 255, 0.75);
}

.banner {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

section.how,
section.stats,
section.measure,
section.cta {
  max-width: 880px;
  margin: 0 auto;
  padding: 88px 24px 0;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 10px;
}

.how h2,
.stats h2,
.measure h2,
.cta h2 {
  font-size: clamp(28px, 4.6vw, 42px);
}

.lead {
  margin-top: 12px;
  max-width: 34em;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.steps article span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-bottom: 10px;
}

.steps h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.steps p,
.measure li,
.cta p {
  color: var(--deep);
  font-size: 15px;
  line-height: 1.5;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.card {
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  border-radius: 22px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 32px rgba(17, 17, 17, 0.06);
}

.hero-card {
  grid-column: span 4;
  border-radius: 28px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card + .card {
  grid-column: span 2;
}

.card.wide,
.card.chart {
  grid-column: span 6;
}

.card.mini {
  grid-column: span 2;
}

.card.wide2 {
  grid-column: span 3;
}

.card-label {
  color: var(--mute);
  font-size: 14px;
  font-weight: 600;
}

.card-hero {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 8px;
}

.card-value.sm {
  font-size: 22px;
  margin-top: 0;
}

.card-value em,
.card-hint {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.card-hint {
  margin-top: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.scale {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  margin-top: 16px;
}

.scale i {
  flex: 1;
  border-radius: 2px;
  height: 13px;
  opacity: 0.72;
}

.scale-cal i.is-mark {
  height: 28px;
  opacity: 1;
}

.scale-bpm {
  height: 20px;
  gap: 2px;
}

.scale-bpm i {
  height: 10px;
  background: #e6e8e1;
  opacity: 1;
  border-radius: 1px;
}

.scale-bpm i.is-on {
  height: 16px;
  background: var(--ink);
}

.shot-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 200px;
  margin-top: 14px;
}

.shot-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.shot-col i {
  width: 70%;
  height: calc(18px + var(--h) * 92px);
  background: var(--fluo);
  border-radius: 10px;
}

.shot-col .pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.shot-col .name {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

.shot-col .n {
  font-size: 11px;
  color: var(--mute);
}

.court-map {
  position: relative;
  width: min(100%, 380px);
  margin: 40px auto 0;
  aspect-ratio: 1000 / 2000;
  background: #0058af;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.14);
}

.court-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.court-heat {
  position: absolute;
  top: 50.8%;
  left: 3.2%;
  width: 94.8%;
  height: 43.1%;
  pointer-events: none;
}

.court-net {
  position: absolute;
  top: 48.6%;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.court-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.court-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.court-bottom > p {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.court-scale {
  display: flex;
  align-items: center;
  gap: 8px;
}

.court-scale span {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.court-scale i {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgb(170, 230, 55),
    rgb(255, 240, 40),
    rgb(255, 140, 20),
    rgb(255, 50, 20),
    rgb(200, 10, 10)
  );
}

.court-caption {
  margin: 12px auto 0;
  max-width: 28em;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.measure ul {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.measure li {
  padding-left: 18px;
  position: relative;
}

.measure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.cta {
  text-align: center;
  padding-bottom: 8px;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  color: var(--mute);
}

.cta .appstore,
.cta .maxing-btn {
  margin-top: 28px;
}

.maxing-btn-after {
  display: block;
  margin: 28px auto 0;
}

.maxing-btn {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(200, 245, 74, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 28px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
}

.maxing-btn:hover {
  background: rgba(200, 245, 74, 0.42);
}

body.maxing-open {
  overflow: hidden;
}

.maxing-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.maxing-overlay[hidden] {
  display: none;
}

.maxing-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.maxing-modal {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 32px 28px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 24px 64px rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
}

.maxing-close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
}

.maxing-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep);
}

.maxing-modal h2 {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.maxing-lead {
  margin-top: 10px;
  color: var(--deep);
  font-size: 16px;
  line-height: 1.45;
}

.maxing-list strong {
  font-weight: 600;
  color: var(--ink);
}

.maxing-price {
  margin-top: 22px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.maxing-price em {
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  color: var(--mute);
}

.maxing-list {
  list-style: none;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.maxing-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--deep);
}

.maxing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fluo);
  box-shadow:
    0 0 8px 3px rgba(200, 245, 74, 0.7),
    0 0 16px 6px rgba(200, 245, 74, 0.35);
}

.maxing-cta {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(200, 245, 74, 0.46);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
}

.maxing-cta:hover {
  background: rgba(200, 245, 74, 0.62);
}

.maxing-pdf {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
}

.maxing-pdf:hover {
  color: var(--ink);
}

.maxing-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--mute);
}

footer {
  text-align: center;
  padding: 72px 24px 28px;
}

footer a {
  color: var(--deep);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer a:hover {
  color: var(--ink);
}

.policy-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
}

.policy-back {
  justify-self: start;
  color: var(--deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-back:hover {
  color: var(--ink);
}

.policy-back-spacer {
  justify-self: end;
}

.policy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 40px;
  color: var(--deep);
}

.policy h1 {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--ink);
}

.policy-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--mute);
}

.policy .lead {
  margin-top: 20px;
}

.policy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 32px 0 8px;
}

.policy-toc a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--deep);
  text-decoration: none;
}

.policy-toc a:hover {
  color: var(--ink);
}

.policy section {
  margin-top: 36px;
}

.policy h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}

.policy h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--ink);
}

.policy p,
.policy li {
  font-size: 15px;
  line-height: 1.6;
}

.policy p + p {
  margin-top: 10px;
}

.policy ul {
  margin: 10px 0 0 1.1em;
  display: grid;
  gap: 8px;
}

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

.policy code {
  font-size: 0.88em;
}

.reveal {
  filter: blur(18px);
  opacity: 0;
  transform: translateY(36px);
  transition:
    filter 0.85s ease,
    opacity 0.85s ease,
    transform 0.85s ease;
  will-change: filter, opacity, transform;
}

.reveal.is-in {
  filter: blur(0);
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-card,
  .hero-card + .card,
  .card.wide,
  .card.chart,
  .card.mini {
    grid-column: span 6;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card.mini,
  .card.wide2 {
    grid-column: span 1;
  }

  .hero-card,
  .hero-card + .card,
  .card.wide,
  .card.chart {
    grid-column: span 2;
  }

}
