/* afterparty.click home page, from the approved design artifact. */
@font-face {
  font-family: "Parkinsans";
  src: url("/fonts/parkinsans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #12072a;
  --plum: #1e0d45;
  --plum-2: #281459;
  --violet: #7c3aed;
  --orchid: #b79cff;
  --mirror: #f4efff;
  --soft: #e3d9ff;
  --gold: #ffd27a;
  --ink: #1c1b22;
  --ink-soft: #6b6976;
  --line: #e4e2ea;
  --edge: rgba(183, 156, 255, 0.2);
  --gutter: clamp(18px, 4vw, 64px);
  --display: "Parkinsans", system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--mirror);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* the ball and light sit behind the content, so the ball never covers a panel; the glitter flies above it */
#fx, #fx2 { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
#fx2 { z-index: 2; }
.copy, .demo-copy, .nav { z-index: 3; position: relative; }
.nav, .hero, .demo, .why, .finale, .foot { position: relative; z-index: 1; }
.finale { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(72px, 9vw, 120px); }
.finale-copy { display: grid; justify-items: center; gap: 18px; position: relative; z-index: 3; }
.ball-spot.ball-spot-finale { width: min(30vw, 26vh); margin: 0; justify-self: center; }
.finale h2 { max-width: 12em; font-size: clamp(2.3rem, 1.2rem + 4vw, 5rem); }
.finale .lede { max-width: 26em; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); }
.logo { display: block; height: 28px; width: auto; }
.logo svg { height: 28px; width: auto; display: block; }
.btn {
  display: inline-block; padding: 0.9em 1.4em; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--mirror); color: var(--night); font-weight: 700; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none; position: relative; overflow: hidden; transition: transform .18s ease, background-color .18s ease;
}
.btn::after {
  content: ""; position: absolute; inset: -40% auto -40% -30%; width: 28%;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .35), transparent);
  transform: skewX(-20deg) translateX(-120%);
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:hover::after { transform: skewX(-20deg) translateX(620%); transition: transform .6s ease; }
.btn-small { padding: .65em 1.05em; font-size: .95rem; border-radius: 11px; }

/* hero: copy left, ball right, as on afterparty.click */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  min-height: min(calc(100svh - 64px), 760px);
  padding: clamp(24px, 6vh, 64px) var(--gutter) clamp(40px, 8vh, 88px);
}
.copy { display: grid; gap: clamp(18px, 3vh, 30px); justify-items: start; }
.ball-spot { justify-self: center; width: min(36vw, 60vh, 470px); aspect-ratio: 1; margin-top: 0; }

/* second section: how it works + the checkout */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(620px, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(64px, 10vw, 140px) var(--gutter) clamp(88px, 12vw, 160px);
}
.demo-copy { display: grid; gap: clamp(24px, 3.5vw, 44px); align-self: start; }
.callout { border: 1px solid var(--edge); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; max-width: 30em; background: rgba(30, 13, 69, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.callout b { font-size: 1.05rem; }
.callout span { color: var(--soft); font-family: var(--ui); font-size: .93rem; line-height: 1.45; }
h2 { font-weight: 800; letter-spacing: -0.015em; line-height: .98; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); text-wrap: balance; max-width: 9em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orchid);
}
.eyebrow .pill {
  letter-spacing: .02em; text-transform: none; font-weight: 500; font-size: .82rem;
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--edge); color: var(--soft);
}
h1 {
  font-weight: 800; letter-spacing: -0.02em; line-height: .92;
  font-size: clamp(3rem, min(0.5rem + 6vw, 15vh), 6.4rem);
  max-width: 7em; text-wrap: balance;
}
h1 .gold { color: var(--gold); }
.lede { max-width: 31em; color: var(--soft); font-size: clamp(1rem, .9rem + .35vw, 1.2rem); line-height: 1.45; }

.steps { display: grid; gap: 18px; width: 100%; max-width: 30em; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--edge); padding-top: 10px; display: grid; gap: 4px; }
.steps li::before { content: counter(s); font-weight: 800; color: var(--orchid); font-size: 1rem; }
.steps b { font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.steps span { color: var(--soft); font-size: .98rem; line-height: 1.35; font-family: var(--ui); }

.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fine { font-size: .9rem; color: var(--orchid); }

/* right side: the stage */
.stage {
  position: relative; align-self: stretch;
  display: grid; grid-template-columns: minmax(340px, 1fr) 256px; gap: 22px; align-items: start;
  min-height: 0; padding-top: 136px;
}

/* checkout card, copied from the site's .co */
.co { width: min(400px, 100%); justify-self: end; font-family: var(--ui); font-size: 13.5px; line-height: 1.35; color: var(--ink); position: relative; }
.co-face { background: #fff; border-radius: 18px; padding: 16px 16px 18px; box-shadow: 0 30px 70px -20px rgba(8, 2, 28, .75), 0 2px 0 rgba(255,255,255,.5) inset; }
.co-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.co-head b { font-size: 15px; }
.co-head span { color: var(--ink-soft); font-size: 12px; }
.co-line, .blk-check { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.co-line { padding: 8px 0; }
.nm { font-weight: 600; }
.nm small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.pr { font-variant-numeric: tabular-nums; }
.thumb { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: #f3f1f7 center / 24px 24px no-repeat; }
.thumb-shirt { background-color: #efe7d8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3 3 6l2 4 2-1v11h10V9l2 1 2-4-5-3c-.6 1.6-2 2.5-4 2.5S8.6 4.6 8 3Z' fill='%23c9b48e'/%3E%3C/svg%3E"); }
.thumb-socks { background-color: #e7e0fb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v9.5l-3.8 5.2A3.3 3.3 0 0 1 5.9 13.8L9 10.5V3Z' fill='%237c3aed'/%3E%3Cpath d='M9 6h6' stroke='%23e7e0fb' stroke-width='1.6'/%3E%3C/svg%3E"); }
.code-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 7px; background: #f3f1f7; font-weight: 600; font-size: 12.5px; }
.tag svg { width: 13px; height: 13px; }
.blk { border: 1.5px solid var(--violet); border-radius: 12px; padding: 12px; background: #faf8ff; }
.blk-check { grid-template-columns: 22px 1fr auto; }
.box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #9a98a6; display: block; position: relative; cursor: pointer; padding: 0; background: #fff; }
.box.is-on { background: var(--violet); border-color: var(--violet); }
.box.is-on::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.co-sum { padding: 10px 0 2px; display: grid; gap: 5px; border-top: 1px solid var(--line); margin-top: 12px; }
.co-sum > div { display: flex; justify-content: space-between; color: var(--ink-soft); }
.co-sum dd { font-variant-numeric: tabular-nums; }
.co-sum .co-total { color: var(--ink); font-weight: 700; font-size: 16px; padding-top: 3px; }
.co-pay { margin-top: 12px; padding: 13px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 600; text-align: center; font-size: 14.5px; }
.co-sum .is-fee { color: var(--violet); font-weight: 600; }

/* "comes back" card, sits over the checkout's lower edge */
.back {
  position: absolute; left: -96px; bottom: -58px; width: 236px;
  background: #fff; color: var(--ink); font-family: var(--ui); border-radius: 14px; padding: 12px 13px;
  box-shadow: 0 24px 50px -16px rgba(8, 2, 28, .8); display: grid; gap: 8px; transform: rotate(-3deg);
}
.back-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); }
.back-h { font-weight: 700; font-size: 14px; }
.back-code { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.back-code b { letter-spacing: .04em; }
.meter { height: 6px; border-radius: 99px; background: #ece9f4; overflow: hidden; }
.meter i { display: block; height: 100%; width: 97%; border-radius: inherit; background: var(--violet); }


/* small ball the big one travels to, above the settings */
.side { position: relative; display: grid; gap: 22px; justify-items: center; align-self: start; }
.ball-spot.ball-spot-demo { position: absolute; bottom: calc(100% + 14px); left: calc(50% - 56px); width: 112px; margin: 0; }
.side .set { width: 100%; }
.blk-check { transition: opacity .2s; }
input[type=text] {
  width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--edge); background: var(--night);
  color: var(--mirror); font: 500 .85rem var(--ui);
}
input[type=text]:focus { outline: none; border-color: var(--orchid); }

/* ROI calculator: a light mirror panel under the demo, across both columns */
.roi {
  grid-column: 1 / -1; background: var(--mirror); color: var(--ink); border-radius: 22px;
  padding: clamp(20px, 2.6vw, 32px); display: grid; gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 0.9fr); align-items: center;
  margin-top: clamp(16px, 3vw, 40px);
}
.roi-head { display: grid; gap: 8px; }
.roi-h { font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); line-height: 1; letter-spacing: -0.01em; color: var(--night); }
.roi-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.roi .field > label { color: var(--ink-soft); flex-direction: column; align-items: flex-start; gap: 6px; }
.roi .num { color: var(--ink); }
.roi .num input { background: #fff; border-color: #d9d2ee; color: var(--ink); width: 100%; font-size: 1.05rem; }
.roi .num input:focus { border-color: var(--violet); }
.roi #roiCodeN, .roi #roiTickN { width: 4.2em; }
.roi input[type=range] { background: #e4dcfa; border-color: #d9d2ee; }
.roi-out { display: grid; gap: 2px; justify-items: end; text-align: right; }
.roi-num { font-weight: 800; font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; color: var(--violet); }
.roi-sub { font-family: var(--ui); font-size: 12.5px; color: var(--ink-soft); }
.roi-mo { font-weight: 700; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.roi-total .tot { display: grid; justify-items: end; gap: 2px; }
.roi-total .tot span { font-size: .85rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.roi-note { font-family: var(--ui); font-size: 12px; color: var(--ink-soft); }

/* lift sub-section */
.roi-lift { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: inherit; align-items: center; border-top: 1px solid #ddd3f5; padding-top: clamp(18px, 2.4vw, 28px); }
.roi-h2 { font-weight: 800; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.1; color: var(--night); }
.roi-lift .roi-num { color: var(--night); }
.roi-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: var(--night); color: var(--mirror); border-radius: 14px; padding: 14px 18px; font-family: var(--ui); font-size: .95rem; }
.roi-total b { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); color: var(--mirror); font-variant-numeric: tabular-nums; }
#liftBackN, #liftBaseN { width: 4.2em !important; }

/* why section */
.why-top { padding-top: clamp(24px, 4vw, 56px); padding-bottom: 0; }
.why-top + .demo { padding-top: clamp(48px, 7vw, 96px); }
.why { padding: 0 var(--gutter) clamp(72px, 10vw, 140px); display: grid; gap: clamp(28px, 4vw, 48px); }
.why-head { display: grid; gap: 14px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-grid li { background: var(--plum); border: 1px solid var(--edge); border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.why-grid b { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.why-grid p { color: var(--soft); font-family: var(--ui); font-size: .93rem; line-height: 1.45; }
.why-grid sup { color: var(--orchid); font-size: .7em; }
.tests { border: 1px dashed var(--edge); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.tests ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tests li { display: grid; gap: 4px; }
.tests b { font-size: 1rem; }
.tests span { color: var(--soft); font-family: var(--ui); font-size: .9rem; line-height: 1.4; }
.refs { font-family: var(--ui); font-size: .78rem; color: var(--orchid); line-height: 1.5; max-width: 70em; }

/* typed numbers in the calculator */
.num { display: inline-flex; align-items: center; gap: 3px; font-family: var(--display); font-weight: 700; color: var(--mirror); }
.num input {
  width: 6.2em; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--edge); background: var(--night);
  color: var(--mirror); font: 700 .9rem var(--display); text-align: right; -moz-appearance: textfield;
}
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num input:focus { outline: none; border-color: var(--orchid); }
#roiCodeN, #roiTickN { width: 4em; }

/* merchant settings panel */
.set {
  background: var(--plum); border: 1px solid var(--edge); border-radius: 18px; padding: 16px;
  display: grid; gap: 14px; align-self: center;
}
.set-h { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orchid); }
.field { display: grid; gap: 7px; }
.field > label, .field > .lbl { font-family: var(--ui); font-size: 12.5px; color: var(--soft); display: flex; justify-content: space-between; }
.field output { font-family: var(--display); font-weight: 700; color: var(--mirror); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 11px; background: var(--night); border: 1px solid var(--edge); }
.seg button { border: 0; background: transparent; padding: 7px 6px; border-radius: 8px; font-size: .82rem; font-weight: 700; color: var(--soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--night); border: 1px solid var(--edge); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--mirror); border: 3px solid var(--violet); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--mirror); border: 3px solid var(--violet); cursor: pointer; }
.keep { border-top: 1px solid var(--edge); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.keep b { font-family: var(--display); font-size: 1rem; color: var(--mirror); }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding: 12px var(--gutter) 16px; border-top: 1px solid var(--edge); font-size: .82rem; color: var(--orchid); }

/* mid widths: keep the headline inside its column */
@media (min-width: 1000px) and (max-width: 1249px) {
  .demo { grid-template-columns: 1fr; }
  .stage { justify-self: center; }
}

/* narrower screens: stack and allow scroll */
@media (max-width: 999px) {
  .hero { grid-template-columns: 1fr; align-content: end; min-height: 0; padding-top: 8px; gap: 8px; }
  .hero .ball-spot { order: -1; justify-self: end; width: min(62vw, 36vh); margin: 0 -4vw 0 0; }
  .demo { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; justify-items: center; gap: 64px; padding-top: 0; }
  .co { justify-self: center; }
  .back { left: auto; right: -10px; bottom: -40px; width: 210px; }
  .side { width: min(400px, 100%); }
  .roi { grid-template-columns: 1fr; }
  .roi-out { justify-items: start; text-align: left; }
  .roi-lift { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tests ul { grid-template-columns: 1fr; }
  .ball-spot.ball-spot-demo { display: none; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .roi-total { flex-direction: column; }
  .roi-fields { grid-template-columns: 1fr; }
  .back { right: 0; }
  .nav .btn-small { font-size: .85rem; }
}
/* short, wide screens (also what the link preview captures, about 600x315):
   keep the hero side by side and fit it to the height */
@media (max-width: 999px) and (min-aspect-ratio: 3/2) {
  .nav { padding: 3vh var(--gutter); }
  .logo, .logo svg { height: max(16px, 5vh); }
  .nav .btn-small { display: inline-block; font-size: max(.6rem, 2.6vh); }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-content: center; align-items: center;
    min-height: calc(100svh - 12vh); padding: 0 var(--gutter) 4vh; gap: 2vw; }
  .hero .ball-spot { order: 0; justify-self: center; width: min(36vw, 62vh); margin: 0; }
  .copy { gap: 3.2vh; }
  .eyebrow { font-size: max(.5rem, 2.4vh); }
  .eyebrow .pill { font-size: max(.55rem, 2.5vh); padding: .3vh 1.2vw; }
  h1 { font-size: min(7.4vw, 15.5vh); }
  .lede { font-size: max(.6rem, 3.3vh); max-width: 30em; }
  .cta .btn { font-size: max(.65rem, 3vh); }
  .fine { font-size: max(.55rem, 2.6vh); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn::after { display: none; } }
