/* Home page only: the 3D hero and the sections under it. */
.wrap.wide { max-width: 1160px; }
.accent { color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
  padding-block: 28px 12px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); margin: 10px 0 14px; }
.hero .lede { font-size: 19px; max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 16px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.cta.primary { background: var(--ink); color: var(--bg); }
.cta.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.cta.block { display: flex; width: 100%; white-space: normal; text-align: center; margin-top: 18px; }

/* The stage: WebGL canvas with the phone and controls layered on top. */
.stage {
  position: relative;
  aspect-ratio: 5 / 4;
  max-width: 100%;
  min-height: 380px;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--mint) 85%, transparent), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, color-mix(in srgb, var(--green) 10%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; }
.stage.ready canvas { opacity: 1; }

.chip {
  position: absolute; left: 18px; top: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--soft);
}
.chip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* The customer's phone, floating in 3D beside the line. */
.phone {
  position: absolute; right: 4%; bottom: 6%; z-index: 2;
  width: min(29%, 176px); aspect-ratio: 9 / 18.5;
  border-radius: 28px; padding: 10px;
  /* Always a dark device, whatever the page theme. */
  background: #0d0f10;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
  transform: perspective(900px) rotateY(-18deg) rotateX(6deg) rotateZ(2deg);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
  display: flex; flex-direction: column;
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.phone-notch { width: 34%; height: 12px; border-radius: 0 0 9px 9px; background: #000; margin: -10px auto 8px; }
.ph-card {
  flex: 1; border-radius: 20px; padding: 14px 14px 12px;
  background: var(--bg); display: flex; flex-direction: column; gap: 6px;
  transition: background 0.4s;
}
.ph-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ph-token { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ph-status { display: inline-flex; width: max-content; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--mint); color: var(--green-deep); }
.ph-line { display: flex; gap: 4px; align-items: center; margin-top: 10px; }
.ph-line i { width: 10px; height: 10px; border-radius: 4px; background: var(--line); transition: background 0.4s, transform 0.4s; }
.ph-line i.me { background: var(--green); transform: scale(1.15); }
.ph-line i.gone { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ph-note { font-size: 10.5px; color: var(--muted); line-height: 1.35; margin-top: 8px; }
.ph-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: auto; }
.ph-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ph-row { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.ph-foot { text-align: center; font-size: 10px; font-weight: 700; color: rgb(255 255 255 / 0.45); padding-top: 8px; letter-spacing: 0.06em; }
.phone.turn .ph-card { background: var(--green); }
.phone.turn .ph-label, .phone.turn .ph-token, .phone.turn .ph-row { color: #fff; }
.phone.turn .ph-status { background: #fff; color: var(--green-deep); }
.phone.turn .ph-bar { background: rgb(255 255 255 / 0.35); }
.phone.turn .ph-bar i { background: #fff; }
.phone.turn .ph-note { color: rgb(255 255 255 / 0.85); }
.phone.turn .ph-line i { background: rgb(255 255 255 / 0.35); box-shadow: none; }
.phone.turn .ph-line i.me { background: #fff; }
.phone.turn { animation: float 6s ease-in-out infinite, buzz 0.5s ease 2; }
@keyframes buzz { 25% { rotate: 1.5deg; } 75% { rotate: -1.5deg; } }

/* Host's button. */
.call-next {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 52px; padding: 0 20px; border: 0; border-radius: 16px;
  background: var(--green); color: #fff; font: 700 16px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--green) 80%, transparent);
  transition: transform 0.12s, box-shadow 0.2s;
}
.call-next small { font-weight: 600; font-size: 12px; opacity: 0.85; }
.call-next:hover { transform: translateY(-1px); }
.call-next:active, .call-next.pressed { transform: translateY(1px) scale(0.98); }
.call-next:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, transparent); outline-offset: 3px; }
.kbd { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgb(255 255 255 / 0.2); font-size: 12px; }

/* No WebGL: the phone and chip still tell the story. */
.stage.no-webgl canvas { display: none; }
.stage.no-webgl .phone { right: 50%; translate: 50% 0; top: 14%; }

/* Sections. */
.band { padding-block: 72px 8px; }
.section-title { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.03em; margin: 8px 0 26px; }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 0; max-width: none; }
.how h3 { font-size: 18px; margin: 14px 0 6px; }
.how p { margin: 0; }
.step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--mint); color: var(--green-deep); font-weight: 800; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
.lede.small { font-size: 17px; }
.features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.features li { padding-left: 28px; position: relative; margin: 0; }
.features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 5px; background: var(--green); }
.features b { color: var(--ink); }
.pricing { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.plan > div { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.plan > div:last-child { border: 2px solid var(--green); background: color-mix(in srgb, var(--mint) 55%, var(--surface)); }
.plan-name { font-size: 13px; font-weight: 700; color: var(--soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.save { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--green); color: #fff; }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* 3D tilt on cards (tilt.js sets --rx/--ry). */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease, box-shadow 0.25s; will-change: transform; }
.tilt:hover { box-shadow: 0 24px 50px -28px rgb(0 0 0 / 0.35); }

@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 5; }
  .phone { width: min(34%, 150px); right: 4%; bottom: 5%; }
}
@media (max-width: 640px) {
  .stage { aspect-ratio: 1 / 1.05; min-height: 340px; }
  /* A compact ticket instead of a whole phone. */
  .phone { width: 136px; aspect-ratio: auto; right: 12px; bottom: 84px; top: auto; border-radius: 20px; padding: 8px; transform: perspective(700px) rotateY(-12deg) rotateX(4deg); }
  .phone-notch, .ph-foot, .ph-note, .ph-line, .ph-label { display: none; }
  .ph-card { border-radius: 14px; padding: 10px 12px; gap: 5px; }
  .ph-token { font-size: 30px; }
}
@media (max-width: 480px) {
  .call-next small { display: none; }
  .plan { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .phone.turn { animation: none; }
  .live { animation: none; }
  .tilt { transform: none; transition: none; }
}
