/* How it works, promoters & door, team, benefits */

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: how; }
.how-card, .pro-step {
  position: relative; display: grid; align-content: start; gap: 14px;
  padding: 22px 22px 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .5s var(--ease);
}
.how-card:hover, .pro-step:hover { border-color: rgba(252, 85, 76, .3); }
.how-card h3, .pro-step h3 { font-size: 23px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.how-card p, .pro-step p { color: var(--muted); font-size: 16px; }
.how-ill {
  height: 236px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line);
  padding: 18px; margin-bottom: 10px; overflow: hidden; position: relative;
  display: grid; align-content: center; gap: 8px;
}
.how-ill::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: radial-gradient(60% 80% at 50% 100%, rgba(252, 85, 76, .14), transparent 70%); pointer-events: none; }
.ill-hint { position: absolute; top: 9px; right: 14px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim-text); }
.ill-menu, .ill-queue { padding-top: 26px; }
.ill-menu:focus, .ill-queue:focus { outline: none; }

/* Card 1: try-it menu */
.mm-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 14px; transition: background .25s, outline-color .25s; outline: 1px solid transparent; }
.mm-row .gl { transform: scale(.8); }
.mm-row b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.mm-row.is-picked { background: rgba(252, 85, 76, .1); outline-color: rgba(252, 85, 76, .35); }
.mm-qty { display: flex; align-items: center; gap: 4px; }
.mm-btn {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 500 15px/1 var(--font); cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.mm-btn:hover { border-color: rgba(252, 85, 76, .6); background: rgba(252, 85, 76, .1); }
.mm-btn:active { transform: scale(.88); }
.mm-btn:disabled { opacity: .35; cursor: default; }
.mm-btn:focus-visible { border-radius: 50%; }
.mm-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); font-weight: 700; font-size: 13px; }
.mm-row:not(.is-picked) .mm-minus, .mm-row:not(.is-picked) .mm-n { display: none; }
.js .mm-row.is-picked .mm-n { animation: pop .3s var(--ease); }
.mm-pay {
  position: relative; margin: 4px auto 0; width: 100%; height: 36px; border-radius: 999px; border: 0; padding: 0;
  background: var(--grad); color: var(--ink); font: 600 14px var(--font); display: grid; place-items: center; cursor: pointer;
  transition: width .45s var(--ease), filter .2s, transform .15s;
}
.mm-pay:hover:not(:disabled) { filter: brightness(1.08); }
.mm-pay:active:not(:disabled) { transform: scale(.97); }
.mm-pay:disabled { background: rgba(255, 255, 255, .08); color: var(--muted); cursor: default; }
.mm-pay:focus-visible { border-radius: 999px; }
.mm-pay-label { transition: opacity .2s; }
.mm-check { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; }
.ill-menu.is-paying .mm-pay { width: 36px; }
.ill-menu.is-paying .mm-pay-label { opacity: 0; }
.ill-menu.is-paying:not(.is-paid) .mm-pay::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2.5px solid rgba(10, 10, 10, .25); border-top-color: var(--ink);
  animation: spin .6s linear infinite;
}
.ill-menu.is-paid .mm-pay { box-shadow: 0 0 0 0 var(--glow); animation: paid-ring .9s var(--ease); }
.ill-menu.is-paid .mm-check { stroke-dashoffset: 0; transition: stroke-dashoffset .4s var(--ease) .05s; }
.ill-menu.is-paying .mm-row { opacity: .45; transition: opacity .3s; }
.mm-bit { position: absolute; width: 7px; height: 7px; border-radius: 2px; pointer-events: none; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes paid-ring { 0% { box-shadow: 0 0 0 0 rgba(252, 85, 76, .6); transform: scale(1); } 30% { transform: scale(1.15); } 100% { box-shadow: 0 0 0 22px rgba(252, 85, 76, 0); transform: scale(1); } }

/* Card 2: bar queue (also used as static tickets in the guest list phones) */
.q-list { display: grid; gap: 8px; }
.q-tick {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-size: 14px;
}
.q-tick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tick b { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.q-tick em { font-style: normal; font-size: 12px; color: var(--dim-text); }
.q-tick.is-new { border-color: rgba(250, 204, 82, .5); }
.q-tick.is-new b { color: var(--y); }
.q-tick.is-ready em { color: var(--ink); background: var(--grad); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.q-tick.is-comp { border-color: rgba(250, 6, 73, .5); background: rgba(250, 6, 73, .08); }
.q-tick.is-comp b { color: var(--p); }
button.q-tick {
  width: 100%; color: var(--text); font-family: var(--font); text-align: left; cursor: pointer;
  transition: border-color .25s, background .25s, opacity .45s var(--ease), transform .45s var(--ease);
}
button.q-tick:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
button.q-tick:focus-visible { border-radius: 12px; }
.js .q-tick.is-ready em { animation: pop .3s var(--ease); }
.q-tick.is-gone { opacity: 0; transform: translateX(40px); pointer-events: none; }
.q-tick.is-gone em { background: rgba(250, 204, 82, .15); color: var(--y); }
.q-empty { display: none; text-align: center; color: var(--muted); font-size: 14px; }
.ill-queue.is-empty .q-empty { display: block; }
@keyframes tick-in { 0% { transform: translateY(-10px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.ill-pickup { justify-items: center; }
.pk-phone { position: relative; width: 120px; padding: 10px; border-radius: 22px; border: 1px solid var(--line-2); background: #0b0a0c; }
.pk-phone .qr { border-radius: 10px; }
.pk-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(250, 204, 82, .1); border: 1px solid rgba(250, 204, 82, .35); }
.pk-ok svg { width: 14px; height: 14px; fill: none; stroke: var(--y); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Promoters & door */
.pro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.pro-step { padding: 18px 18px 26px; }
.pro-step h3 { font-size: 20px; }
.pro-step p { font-size: 15px; }
.mini-phone {
  /* min-height (not height) so the last row always keeps its 14px bottom padding */
  position: relative; min-height: 276px; border-radius: 26px; padding: 18px 14px 14px; margin-bottom: 10px;
  background: linear-gradient(180deg, #17151a, #0d0c0f); border: 1px solid var(--line-2);
  display: grid; align-content: start; gap: 8px; overflow: hidden;
}
.mini-phone::before { content: ""; justify-self: center; width: 54px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin-bottom: 6px; }
.mp-head { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.mp-card { padding: 12px; border-radius: 14px; background: rgba(252, 85, 76, .08); border: 1px solid rgba(252, 85, 76, .3); display: grid; gap: 4px; font-size: 14px; }
.mp-card span { color: var(--muted); font-size: 12px; }
.mp-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.mp-bar i { display: block; height: 100%; background: var(--grad-h); border-radius: 4px; }
.mp-line { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 13px; }
.mp-line em { font-style: normal; color: var(--dim-text); font-size: 12px; text-align: right; }
.mp-line.is-sent em { color: var(--y); }
.mini-phone .ill-hint { top: 37px; right: 14px; color: var(--c); }
.mp-toggle {
  width: 100%; border: 1px solid transparent; color: var(--text); font-family: var(--font); text-align: left; cursor: pointer; align-items: center;
  transition: background .2s, border-color .2s;
}
.mp-toggle span { display: inline-flex; align-items: center; gap: 8px; }
.mp-toggle span::before {
  content: ""; width: 26px; height: 15px; border-radius: 999px; flex: none; box-shadow: inset 0 0 0 1px var(--line-2);
  background: radial-gradient(circle 5.5px at 7.5px 50%, var(--text) 95%, transparent), rgba(255, 255, 255, .1);
}
.mp-toggle[aria-pressed="true"] span::before {
  box-shadow: none; background: radial-gradient(circle 5.5px at calc(100% - 7.5px) 50%, var(--ink) 95%, transparent), var(--grad-h);
}
.mp-toggle:hover { border-color: var(--line-2); }
.mp-toggle:focus-visible { border-radius: 10px; }
.mp-toggle[aria-pressed="false"] em { color: var(--dim-text); }
.mp-bar i { transition: width .5s var(--ease); }
.mp-form { display: flex; gap: 6px; }
.mp-input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(252, 85, 76, .45); font: 14px var(--font);
  color: var(--text); background: rgba(0, 0, 0, .3); caret-color: var(--c); transition: border-color .2s, box-shadow .2s;
}
.mp-input::placeholder { color: var(--dim-text); }
.mp-input:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 3px rgba(252, 85, 76, .2); }
.mp-input.is-bad { border-color: var(--p); animation: shake .35s; }
.mp-send {
  flex: none; width: 38px; border-radius: 12px; border: 0; background: var(--grad); display: grid; place-items: center; cursor: pointer;
  transition: transform .15s, filter .2s;
}
.mp-send:hover { filter: brightness(1.08); }
.mp-send:active { transform: scale(.92); }
.mp-send svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-err { min-height: 15px; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.mp-sent { display: grid; gap: 8px; }
.mp-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-fresh { animation: tick-in .5s var(--ease); }
.mp-scan { justify-items: center; }
.mp-scan .mp-head { justify-self: start; }
.mp-frame {
  position: relative; width: 116px; padding: 8px; border-radius: 16px; border: 2px dashed rgba(250, 204, 82, .5); background: none; cursor: pointer;
  overflow: hidden; transition: border-color .2s, transform .15s;
}
.mp-frame:hover { border-color: var(--y); }
.mp-frame:active { transform: scale(.96); }
.mp-frame:focus-visible { border-radius: 16px; }
.mp-frame .qr { display: block; border-radius: 8px; }
.is-scanning .mp-frame { border-style: solid; border-color: var(--y); }
.is-scanning .scanline { animation-duration: .65s; }
.mp-verdict { width: 100%; text-align: center; padding: 9px; border-radius: 12px; display: grid; font-size: 12px; border: 1px solid transparent; transition: background .25s, color .25s; }
.mp-verdict b { font-size: 15px; }
.mp-verdict span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-verdict.is-valid { background: var(--grad); color: var(--ink); }
.mp-verdict.is-used { background: rgba(250, 204, 82, .1); border-color: rgba(250, 204, 82, .5); color: var(--text); }
.mp-verdict.is-no { background: rgba(250, 6, 73, .1); border-color: rgba(250, 6, 73, .55); color: var(--text); }
.mp-verdict.is-ready { background: rgba(255, 255, 255, .05); border-color: var(--line-2); color: var(--text); }
.mp-verdict:not(.is-ready) { animation: pop .3s var(--ease); }
.is-scanning .mp-verdict { opacity: .4; }
.mp-alt { font: 500 12px var(--font); color: var(--muted); background: none; border: 0; padding: 4px 6px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(252, 85, 76, .6); text-underline-offset: 3px; }
.mp-alt:hover { color: var(--text); }
.mp-queue { display: grid; gap: 8px; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mini-phone .q-tick { padding: 9px 10px; gap: 8px; font-size: 12.5px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.team-card {
  grid-column: span 2; position: relative; overflow: hidden; display: grid; align-content: start; gap: 10px;
  padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.team-card.tc-owner, .team-card.tc-bar { grid-column: span 3; }
.team-card.tc-owner { background: radial-gradient(90% 120% at 100% 100%, rgba(252, 85, 76, .16), transparent 60%), var(--surface); }
.team-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.team-card > p:not(.role) { color: var(--muted); font-size: 16px; max-width: 42ch; }
.role { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.sees { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sees li { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.tc-spark { margin-top: 14px; height: 56px; }
.tc-queue { display: grid; gap: 8px; margin-top: 14px; }
.tc-spark svg { width: 100%; height: 100%; overflow: visible; }
.tc-spark path { fill: none; stroke: url(#gh); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* Benefits */
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.tab {
  height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  color: var(--muted); font-size: 15.5px; font-weight: 500; transition: color .2s, background-color .2s, border-color .2s, box-shadow .3s;
}
.tab:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.tab[aria-selected="true"] { background: var(--grad); color: var(--ink); border-color: transparent; box-shadow: 0 10px 30px -12px var(--glow); font-weight: 600; }
.panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel:focus-visible { border-radius: var(--r-lg); }
.panel:not([hidden]) .ben { animation: ben-in .55s var(--ease) both; }
.panel:not([hidden]) .ben:nth-child(2) { animation-delay: .05s; }
.panel:not([hidden]) .ben:nth-child(3) { animation-delay: .1s; }
.panel:not([hidden]) .ben:nth-child(4) { animation-delay: .15s; }
@keyframes ben-in { from { opacity: 0; transform: translateY(10px); } }
.ben {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  padding: 30px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.ben h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.ben p { color: var(--muted); font-size: 16px; }
.ico {
  width: 64px; height: 64px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line);
  fill: none; stroke: url(#gi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ben-link { display: block; width: fit-content; margin-top: 10px; color: var(--text); border-bottom: 1px solid rgba(252, 85, 76, .6); }
.ben-link:hover { border-bottom-color: var(--y); }

@media (max-width: 1080px) {
  .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-card, .team-card.tc-owner, .team-card.tc-bar { grid-column: auto; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  /* 6px+ padding so the focus ring is not clipped by the scroll container */
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: -6px calc(var(--gutter) * -1) 22px; padding: 6px var(--gutter) 8px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}
@media (max-width: 560px) {
  .pro-grid { grid-template-columns: minmax(0, 1fr); }
  .ben { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 16px; }
  .ico { width: 56px; height: 56px; padding: 14px; }
  .team-card { padding: 24px; }
}
/* iPhone zooms into inputs under 16px */
@media (max-width: 899px) { .mp-input { font-size: 16px; } }
