/* join.fee.market: the way in. The same look as the home page (style.css holds the colours, the top bar, the headline, the
   buttons and the cubes); what is here is the layout of a page that scrolls, and the cards, the form and the command. */

/* The home page pins itself to one desktop window. This one is read top to bottom. */
html.scroll, html.scroll body { height: auto; overflow: visible; }
html.scroll body { overflow-x: hidden; }
.join .page { height: auto; min-height: 100dvh; max-width: 1280px; grid-template-rows: auto auto auto; gap: clamp(18px, 2.6vh, 30px); }

.j-main { display: grid; gap: clamp(18px, 2.6vh, 30px); padding: 0 9px 10px 0; /* room for the hard shadows */ }

/* ── the headline ── */
.j-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 24px; }
.j-title { position: relative; container-type: inline-size; min-width: 0; padding: clamp(10px, 3vh, 34px) 0 clamp(6px, 1.4vh, 14px); }
.j-title .xh { font-size: min(17cqw, 128px); }
.j-title p { margin: 26px 0 0; max-width: 46ch; font: 600 clamp(15px, 2.6cqw, 19px)/1.45 var(--font); opacity: 0.94; text-wrap: pretty; }
.j-title .j-live { max-width: none; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 7px 14px 7px 12px; border: 2px solid rgba(253, 245, 229, 0.6); border-radius: 999px; font: 700 13.5px/1.2 var(--display); opacity: 1; }
.j-title .j-live[hidden] { display: none; }
.j-art { display: none; position: relative; }

/* ── a card: one way in ── */
.j-ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.6vh, 30px); align-items: start; }
.card { position: relative; container-type: inline-size; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 5cqw, 34px); border: var(--line) solid var(--ink); border-radius: clamp(20px, 2.8vh, 30px); box-shadow: 7px 8px 0 var(--peri-deep);
  animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.1) backwards; animation-delay: calc(var(--i) * 80ms + 120ms); }
.card > * { margin: 0; }
.card .ico { width: clamp(42px, 9cqw, 54px); right: clamp(16px, 4cqw, 28px); top: clamp(16px, 4cqw, 26px); }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.eyebrow { padding-right: 64px; font: 800 12.5px/1.25 var(--font); letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.72; }
.card h2 { padding-right: 64px; font: 700 clamp(28px, 7.4cqw, 44px)/1 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.card p { font: 600 15.5px/1.5 var(--font); text-wrap: pretty; }
.card a:not(.btn) { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fine { font: 600 13px/1.45 var(--font) !important; opacity: 0.74; }

/* numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 10px; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; font: 700 15px/1.35 var(--font); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border: var(--line) solid var(--ink); border-radius: 50%; background: var(--mint); font: 700 14px/1 var(--display); box-shadow: 2px 2px 0 var(--ink); }

.steps.on-mint li::before { background: var(--cream); }

/* what a sponsor needs */
.needs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.needs li { padding: 7px 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); font: 700 13.5px/1.2 var(--font); }

/* the buttons */
.cta { display: grid; gap: 10px; justify-items: start; }
.cta.row { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: auto; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn.peri { background: var(--peri); color: var(--cream); }
.btn.peri:hover { background: #7A6BF0; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.45); box-shadow: none; transform: none; }
.btn[aria-disabled="true"] { background: #E4DCC9; color: rgba(20, 19, 26, 0.6); box-shadow: 2px 2px 0 var(--ink); cursor: default; pointer-events: none; }
button.btn { cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: default; pointer-events: none; }

/* the two commands */
.cmd { position: relative; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--ink); color: var(--cream); box-shadow: 4px 5px 0 rgba(20, 19, 26, 0.28); }
.cmd .cmd-label { padding: 13px 90px 0 18px; font: 800 11.5px/1.3 var(--font); letter-spacing: 0.09em; text-transform: uppercase; color: var(--mint); }
.cmd pre { margin: 0; padding: 10px 18px 16px; overflow-x: auto; font: 500 13.5px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre; scrollbar-width: thin; }
.copy { position: absolute; right: 10px; top: 10px; padding: 6px 12px; border: 2px solid var(--cream); border-radius: 999px; background: transparent; color: var(--cream); font: 800 12px/1 var(--font); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.copy:hover, .copy.done { background: var(--mint); border-color: var(--mint); color: var(--ink); }

/* the email field */
.notify { display: grid; gap: 12px; margin-top: 4px !important; padding-top: 18px; border-top: 2px dashed rgba(20, 19, 26, 0.28); }
.notify[hidden] { display: none; }
.notify-lead { font-weight: 700 !important; }
.seg { display: inline-flex; justify-self: start; padding: 3px; border: var(--line) solid var(--ink); border-radius: 999px; background: #fff; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 18px; border-radius: 999px; font: 800 13.5px/1.2 var(--font); transition: background 0.15s ease, color 0.15s ease; }
.seg input:checked + span { background: var(--ink); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--peri); outline-offset: 2px; }
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 0 18px; border: var(--line) solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 16px/1 var(--font); }
.field input[type="email"]::placeholder { color: rgba(20, 19, 26, 0.38); font-weight: 600; }
.field input[type="email"]:focus-visible { outline: 3px solid var(--peri); outline-offset: 2px; }
.field .btn { min-height: 46px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#notify-status.ok { opacity: 1; font-weight: 800 !important; }
#notify-status.err { opacity: 1; font-weight: 800 !important; color: #B23A06; }

/* ── before you join ── */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 34px; }
.fact { display: grid; gap: 7px; align-content: start; }
.fact h3 { margin: 0; color: var(--mint); font: 700 20px/1.1 var(--display); letter-spacing: -0.03em; }
.fact p { margin: 0; font: 600 14.5px/1.5 var(--font); opacity: 0.86; }

.join .foot { padding-top: 4px; }
.join .foot .live { opacity: 0.85; }

/* ── wide windows: the two ways side by side, the drop beside the headline ── */
@media (min-width: 900px) {
  .j-hero { grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 300px); }
  .j-title .xh { font-size: min(19cqw, 150px); }
  .j-art { display: block; }
  .j-art img { width: 100%; height: auto; filter: drop-shadow(8px 12px 0 rgba(43, 34, 144, 0.55)); }
  .q1 { width: 50px; left: -14px; top: 10%; --depth: 14px; }
  .q2 { width: 40px; right: -4px; bottom: 8%; --depth: -10px; animation-delay: -1.9s; }
  .j-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* beside narrow text the small marks would sit on the words */
@media (max-width: 899px) { .j-title .m2, .j-title .m3 { display: none; } }
@media (max-width: 560px) {
  .join #live-numbers { margin-left: auto; }
  .cta .btn.big { width: 100%; justify-content: center; }
  .field .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .copy, .seg span { transition: none; }
}
