/* social.revenuagency.io
   One layout for every page: a split screen. Left, the teal panel (wordmark,
   headline, one line, Rev). Right, the form, centred, above the fold. On a phone
   the panel sits on top and the form follows. Revenu's look as worn by
   revenuagency.io: Montserrat, warm off-white, the house teal, pill buttons. */

:root {
  --bg: #FBF7F4;
  --card: #ffffff;
  --ink: #1c1f1d;
  --ink-soft: #5b6361;
  --ink-mute: #8a918f;
  --accent: #2f7d6f;
  --accent-dark: #1f6155;
  --accent-deep: #17504a;
  --accent-lite: #76A09C;
  --accent-soft: #d6e6e2;
  --line: #e8dfd2;
  --line-strong: #c9ccc8;
  --bad: #C44536;
  --bad-soft: #fbe9e6;
  --gold: #FFD166;
  --pill: 100px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t: .18s;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Left: the panel ---------- */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 48px 56px;
  color: #fff;
  background:
    radial-gradient(800px 500px at 90% -10%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(0,0,0,.14), transparent 60%),
    var(--accent);
  overflow: hidden;
}
.brand {
  position: absolute;
  top: 28px;
  left: 40px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .28em;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}
.panel-inner { width: 100%; max-width: 480px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 14px 5px 10px;
  border-radius: var(--pill);
  background: rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.panel h1 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}
.panel h1 .money {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-deep);
  background: var(--gold);
  padding: 0 .22em;
  border-radius: 10px;
  transform: rotate(-1.5deg);
}
.panel h1 .chip { display: inline-block; padding: 0 .22em; transform: rotate(-1.5deg); }
.panel .lede {
  margin: 14px auto 0;
  max-width: 400px;
  font-size: 16px;
  color: rgba(255,255,255,.88);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.fact .ico { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fact .ico svg { width: 11px; height: 11px; }
.local { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.72); }

.figure { margin: 32px auto 0; }
.figure img { width: min(100%, 340px); margin: 0 auto; filter: drop-shadow(0 24px 36px rgba(0,0,0,.28)); }
.photo {
  width: min(100%, 460px);
  margin: 28px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
  transform: rotate(-1.5deg);
}
.photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* Carousel of the real Rev, the same 3:2 card as the Games photo: swipe, arrows, dots, turns itself every few seconds */
.carousel { position: relative; width: min(100%, 460px); margin: 28px auto 0; }
.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
  aspect-ratio: 3 / 2;
  background: rgba(0,0,0,.15);
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: 3px; }
.track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 78%; scroll-snap-align: start; scroll-snap-stop: always; }

/* Games | Fox toggle, top right of the page */
.toggle {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 5;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 4px 16px rgba(20,30,28,.12);
}
.toggle a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--pill);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.toggle a:hover { color: var(--accent-dark); }
.toggle a.is-active { background: var(--accent); color: #fff; }
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--accent-dark);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: background var(--t), transform var(--t), opacity var(--t);
  opacity: .9;
}
.arrow:hover { background: #fff; opacity: 1; }
.arrow:active { transform: translateY(-50%) scale(.94); }
.arrow svg { width: 18px; height: 18px; }
.arrow.prev { left: 12px; }
.arrow.next { right: 12px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.dots button[aria-selected="true"] { background: #fff; transform: scale(1.3); }

/* ---------- Right: the gate ---------- */
.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  background: var(--bg);
}
.gate-inner { width: 100%; max-width: 440px; margin: auto; }
.gate-inner.is-wide { max-width: 520px; }
.gate h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-align: center; }
.gate-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.help-btn {
  width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; font-size: 15px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.help-btn:hover, .help-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
.help-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--line);
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
  text-align: left;
  white-space: pre-line;
}
.gate .sub { margin-top: 8px; text-align: center; color: var(--ink-soft); font-size: 16px; }
.gate form { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.gate form .field { margin-bottom: 0; }
.btn.btn-narrow { width: 210px; align-self: center; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field label .opt { color: var(--ink-mute); font-weight: 500; }
.input {
  height: 54px;
  width: 100%;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px; /* 16px stops iOS zooming on focus */
  font-weight: 500;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--ink-mute); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
select.input {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6361' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field-error { font-size: 13px; color: var(--bad); font-weight: 600; display: none; }
.field.has-error .field-error { display: block; }
.field.has-error .input { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--t), transform var(--t), opacity var(--t);
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.is-busy .spinner { display: inline-block; }

.note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; }
.note a { color: var(--accent-dark); }
.form-error { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: #8e2f24; font-size: 14px; font-weight: 600; }
.form-error.is-visible { display: block; }

.success { display: none; text-align: center; }
.success.is-visible { display: block; }
.success img { width: 88px; height: 88px; border-radius: 50%; background: var(--accent-soft); object-fit: cover; margin: 0 auto 16px; }
.success h2 { font-size: 26px; }
.success p { margin-top: 8px; color: var(--ink-soft); }
.success a { color: var(--accent-dark); }

.fillout { width: 100%; min-height: 320px; margin-top: 16px; }
.fillout iframe { width: 100%; border: 0; display: block; }

/* Compact form: the merch address form has nine fields, so everything shrinks a notch */
.is-compact h2 { font-size: clamp(22px, 2vw, 26px); }
.is-compact .sub { font-size: 14px; }
.is-compact form { margin-top: 0; }
.is-compact .field { gap: 4px; margin-bottom: 0; }
.is-compact .field label { font-size: 12px; }
.is-compact .input { height: 42px; padding: 0 14px; border-radius: 11px; font-size: 14px; border-width: 1.5px; }
.is-compact select.input { background-position: right 12px center; }
.is-compact .row { gap: 10px; }
.is-compact .btn { height: 46px; font-size: 15px; margin-top: 4px; }
.is-compact .note { margin-top: 10px; font-size: 12px; }
.is-compact .switch { margin-top: 24px; }

.switch { margin-top: 36px; text-align: center; font-size: 13.5px; color: var(--ink-mute); }
.switch a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.switch a:hover { text-decoration: underline; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Desktop: both halves fill the screen, the form never below the fold ---------- */
@media (min-width: 861px) {
  .split { height: 100vh; height: 100svh; }
  .panel { overflow: hidden; }
  .gate { overflow-y: auto; }
  .photo { width: min(100%, 460px, 54vh); }
  .carousel { width: min(100%, 460px, 54vh); }
}

/* ---------- Phone and narrow ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .panel { padding: 84px 24px 40px; }
  .brand { top: 26px; left: 24px; font-size: 18px; }
  .panel h1 { font-size: 30px; }
  .panel .lede { font-size: 15px; }
  .figure img { width: min(60%, 220px); }
  .figure { margin-top: 24px; }
  .photo { width: min(100%, 360px); margin-top: 24px; transform: none; }
  .carousel { width: min(100%, 360px); margin-top: 24px; }
  .track { border-radius: 16px; }
  .arrow { width: 36px; height: 36px; }
  .toggle { top: 18px; right: 16px; padding: 3px; }
  .toggle a { height: 30px; padding: 0 13px; font-size: 12.5px; }
  .brand { top: 26px; }
  .gate { padding: 36px 20px 44px; }
  /* Phones: 16px text in fields stops iOS zooming, so the compact form keeps that */
  .is-compact .input { height: 46px; font-size: 16px; }
  .row { grid-template-columns: 1fr; gap: 20px; }
  .fact { height: 34px; font-size: 12.5px; }
  .btn.btn-narrow { width: 100%; }
}
@media (max-width: 380px) {
  .panel h1 { font-size: 27px; }
}
