/* Research-use gate (scripts/ruo-gate.mjs). Self-contained values: it also sits on
   basket and checkout, which use a different stylesheet. Hidden unless the head
   script adds html.ruo-gated, so a browser without JavaScript is never stuck. */
.ruo-gate { display: none; }
html.ruo-gated, html.ruo-gated body { overflow: hidden; }
html.ruo-gated .ruo-gate {
  position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow-y: auto; background: #FFFFFF; color: #0D0F13; text-align: left;
  font: 400 16px/1.55 "Instrument Sans", Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased;
}
.ruo-gate *, .ruo-gate *::before, .ruo-gate *::after { box-sizing: border-box; }
.ruo-gate-inner { position: relative; width: min(520px, 100%); margin: auto; padding: clamp(28px, 5vh, 56px) clamp(16px, 4.4vw, 64px); outline: none; }
.ruo-gate-mark { display: inline-block; font: 600 20px/1 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .52em; margin-right: -.52em;
  background: linear-gradient(100deg, #56C8F2 0%, #4F8DF7 48%, #8B5CF6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ruo-gate-bar { height: 2px; width: 56px; margin: 20px 0 24px; border-radius: 2px; background: linear-gradient(100deg, #56C8F2 0%, #4F8DF7 48%, #8B5CF6 100%); }
.ruo-gate-eyebrow, .ruo-gate-trust li { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-weight: 500; text-transform: uppercase; color: #7A808B; }
.ruo-gate-eyebrow { margin: 0; font-size: 12px; line-height: 1; letter-spacing: .08em; }
.ruo-gate h2 { margin: 16px 0 0; font-size: clamp(34px, 3.6vw, 48px); font-weight: 400; line-height: 1.06; letter-spacing: -.028em; text-wrap: balance; color: #0D0F13; }
.ruo-gate-body { margin: 16px 0 0; color: #4A4F59; }
.ruo-gate form { margin: 24px 0 0; display: grid; gap: 12px; }
.ruo-gate-ask { margin: 0 0 4px; font-weight: 500; font-size: 15px; }
.ruo-tick { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 14px 18px; border: 1px solid #E6E8EC;
  border-radius: 16px; cursor: pointer; font-size: 15px; line-height: 1.45; transition: border-color .2s ease, background .2s ease; }
.ruo-tick:hover { border-color: #C9CDD4; }
.ruo-tick.on { border-color: #0D0F13; background: #F7F8FA; }
.ruo-tick input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border: 1.5px solid #B7BCC5; border-radius: 6px;
  display: grid; place-items: center; cursor: pointer; background: #FFFFFF; transition: background .15s ease, border-color .15s ease; }
.ruo-tick input::after { content: ""; width: 10px; height: 6px; border: 2px solid #FFFFFF; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.ruo-tick input:checked { background: #0D0F13; border-color: #0D0F13; }
.ruo-tick input:checked::after { opacity: 1; }
.ruo-gate :focus-visible { outline: 2px solid #0D0F13; outline-offset: 3px; }
/* The text block takes focus when the gate opens, for screen readers; it needs no ring. */
.ruo-gate .ruo-gate-inner:focus { outline: none; }
.ruo-gate-enter { margin-top: 12px; width: 100%; height: 54px; border: 1px solid #0D0F13; border-radius: 999px; background: #0D0F13; color: #FFFFFF;
  font: 500 16px/1 "Instrument Sans", Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: transform .2s ease; }
.ruo-gate-enter:hover { transform: translateY(-1px); }
.ruo-gate-enter:disabled { background: #D5D8DE; border-color: #D5D8DE; cursor: not-allowed; transform: none; }
.ruo-gate-leave { justify-self: center; margin-top: 4px; font-size: 14px; color: #7A808B; text-underline-offset: 3px; }
.ruo-gate-trust { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.ruo-gate-trust li { font-size: 10.5px; line-height: 1; letter-spacing: .06em; }
.ruo-gate-trust li + li::before { content: "·"; margin-right: 10px; }
.ruo-gate-fine { margin-top: 24px; padding-top: 18px; border-top: 1px solid #E6E8EC; font-size: 13px; color: #7A808B; display: grid; gap: 8px; }
.ruo-gate-fine a { color: #4A4F59; text-underline-offset: 3px; }
.ruo-gate-panel { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(100deg, #56C8F2 0%, #4F8DF7 48%, #8B5CF6 100%); }
.ruo-gate-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 30% 20%, rgba(255, 255, 255, .28), transparent 70%); }
.ruo-gate-panel span { position: relative; font: 600 clamp(36px, 4vw, 60px)/1 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .52em; margin-right: -.52em; color: #FFFFFF; }
.ruo-gate-panel small { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; font: 500 12px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
@media (max-width: 960px) {
  html.ruo-gated .ruo-gate { grid-template-columns: 1fr; border-top: 4px solid #4F8DF7; }
  .ruo-gate-panel { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ruo-gate * { transition: none !important; } }
