/* home page (/) only. Its own file, not inline: the prod CSP (deploy/nginx.conf, style-src 'self')
   blocks <style> and style="". Loaded after smp.css, only by the home page, so it never touches the other pages. */
/* optical alignment: pills that start on the text column overshoot it slightly.
   A pill's round end has nothing on the column except at its vertical midpoint, so its box edge reads as indented.
   Overshoot = the width a square end of equal area would lose: R(1 - pi/4) = 0.215 R, i.e. ~0.107 x height:
   56px address chip -> 6px, 44px buttons/status -> 5px. Text (label, headline, lead, meta) stays ON the column;
   only boxes overshoot. Full-width chips (phones) overshoot both sides, so they stay centred and width grows by 2x. */
:root{--nudge-56:6px;--nudge-44:5px}
.hero{padding-bottom:0}
.hero h1{margin-bottom:var(--space-3)}
.hero .lead{margin:0 0 var(--space-8)}
.hero .meta{margin:0}

/* address: a small caps label over a calm violet chip. With JS the chip IS the button (#copy) and holds the address
   as <code id="ip"> (not a span: smp.js treats every span in #copy as a state label). Without JS (or without the
   clipboard API) #copy stays hidden and .addr-static, the same chip minus the icon, shows a plain selectable address.
   Own class name (.addr-chip): smp.css uses .chip for the rank filters that the Commands modal loads into this page.
   Rules using :has() (hint, check icon) are enhancements only; without :has() the Copied tag still confirms the copy. */
.addr{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2);margin-bottom:var(--space-3)}
.addr-label{margin:0;font:600 12px/16px var(--font-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-muted)}
.addr-label .hint{display:none}
.addr:has(#copy:not([hidden])) .addr-label .hint{display:inline}
.addr-label .tap{display:none}
@media (hover:none) and (pointer:coarse){.addr-label .click{display:none}.addr-label .tap{display:inline}}
.hero .join{margin:0;gap:var(--space-3) var(--space-4)}
.addr-chip{position:relative;display:inline-flex;align-items:center;gap:var(--space-4);min-height:56px;max-width:calc(100% + var(--nudge-56));margin:0 0 0 calc(-1*var(--nudge-56));padding:0 20px 0 var(--space-6);background:var(--surface-200);border:1px solid var(--brand);border-radius:var(--radius-pill);color:var(--ink);font:inherit;text-align:left}
.addr-chip .ip,.addr-chip #ip{font:500 22px/28px var(--font-mono);letter-spacing:-.01em;white-space:nowrap;color:var(--ink);background:none;padding:0;border-radius:0}
#ip{user-select:text;-webkit-user-select:text;cursor:inherit}
#copy{cursor:copy;transition:border-color .15s ease-out,box-shadow .15s ease-out,transform .15s ease-out}
#copy[hidden],#copy:not([hidden])+.addr-static{display:none}
#copy:hover{border-color:var(--brand-hover);box-shadow:var(--shadow-glow);transform:translateY(-1px)}
#copy:active{transform:none}
#copy:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
#copy svg{width:20px;height:20px;flex:none;margin-left:auto;color:var(--brand);transition:color .15s ease-out}
#copy:hover .cp{color:var(--brand-hover)}
#copy .ok{display:none;color:var(--success)}
#copy:has(>span:nth-of-type(2).on) .ok{display:block}
#copy:has(>span:nth-of-type(2).on) .cp{display:none}
/* state labels: the first is the accessible name only; Copied / Press Ctrl+C pop up as a small tag above the icon,
   so the chip never changes width */
#copy>span{display:none}
#copy>span:first-of-type{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* the tag sits on the label's line, over the icon; the hint steps aside while it shows */
.addr:has(#copy>span:not(:first-of-type).on) .addr-label .hint{visibility:hidden}
#copy>span:not(:first-of-type).on{display:block;position:absolute;right:6px;bottom:calc(100% + 3px);padding:4px 10px;border-radius:var(--radius-pill);background:var(--surface-300);border:1px solid var(--line-strong);color:var(--ink);font:600 13px/18px var(--font-sans);white-space:nowrap;pointer-events:none}
#copy>span:nth-of-type(2).on{border-color:var(--success);color:var(--success)}
.addr-static{border-color:var(--line-strong)}
.addr-static .ip{user-select:all}
#ip::selection,.addr-static .ip::selection{background:var(--brand);color:var(--on-brand)}
.hero .row{margin-top:var(--space-8)}
.hero .row>.btn:first-child{margin-left:calc(-1*var(--nudge-44))}
@media (min-width:561px){.addr-chip{gap:20px;padding-right:var(--space-6)}}
.how{margin-top:96px}
.cards.four{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-4)}
.cards.four .card{padding:var(--space-6) var(--space-6) var(--space-6)}
.cards.four h3{font-size:17px;line-height:22px;margin-bottom:var(--space-2)}
.cards.four p{font-size:15px;line-height:22px}
.more{margin:var(--space-6) 0 0;font-weight:600}
.more a{text-decoration:none}.more a:hover{text-decoration:underline}
@media (max-width:900px){.cards.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){
  .cards.four{grid-template-columns:1fr;gap:var(--space-3)}
  .cards.four .card{padding:var(--space-4) var(--space-6)}
  .how{margin-top:var(--space-16)}
  .addr{align-items:stretch}
  .addr-chip{width:calc(100% + var(--nudge-56));max-width:none;margin:0 0 0 calc(-1*var(--nudge-56));padding-left:20px}
  /* the chip fills the row here, so the live-count pill wraps onto the column and gets the same overshoot */
  .hero .join .status{margin-left:calc(-1*var(--nudge-44))}
  .addr-chip .ip,.addr-chip #ip{font-size:20px}
}
/* narrow Androids: the address stays on one line, clear of the icon */
@media (max-width:380px){.addr-chip .ip,.addr-chip #ip{font-size:18px}}
@media (max-width:340px){.addr-chip .ip,.addr-chip #ip{font-size:16px}.addr-chip{padding:0 14px 0 var(--space-4)}}
