/* Offmode — waitlist & events page */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Geist:wght@400;500;600;700&display=swap');

:root {
  --green: #004e44;
  --green-deep: #003932;
  --green-soft: #006054;
  --green-mid: #015549;
  --cream: #f6efde;
  --cream-warm: #fbf6e9;
  --mint: #94d4ca;
  --pale-blue: #c2d6ef;
  --lime: #dee78b;
  --orange: #f89f6a;
  --orange-warm: #ffa069;
  --lilac: #c5b0d5;
  --ink: #1f2a28;
  --accent: var(--mint);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream-warm);
  color: var(--green-deep);
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--green);
  color: var(--cream);
  padding: 56px 28px 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card.has-stickers {
  background-image: url("assets/brand-bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}
/* Hand-painted dark-green overlay (Tweaks → Paint background) */
.bg-paint-overlay {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  /* match brand-bg.png aspect (1080x1920) so paint coords line up with the visible bg */
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 720px) {
  .page { padding: 28px; }
  .card {
    min-height: calc(100vh - 56px);
    border-radius: 28px;
    box-shadow: 0 30px 60px -30px rgba(0,40,32,.45);
    max-height: 920px;
  }
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 32px;
}
.hero svg { margin: 0 auto; }
.tagline {
  font-family: "Courier Prime", "JetBrains Mono", monospace;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .02em;
  margin: 20px 0 0;
  color: var(--cream);
}

/* Row buttons */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 32px;
}

.row-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px 16px 14px;
  border-radius: 999px;
  background: transparent;
  border: 2.5px solid var(--accent);
  color: var(--accent);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.row-btn:hover {
  background: rgba(148,212,202,.06);
  transform: translateY(-1px);
}
.row-btn:active { transform: translateY(0); }

.row-btn--filled {
  background: var(--accent);
  color: var(--green-deep);
}
.row-btn--filled .row-btn__icon { border-color: transparent; }
.row-btn--filled .row-btn__icon svg { stroke: var(--green-deep); }
.row-btn--filled .row-btn__sub { color: var(--green-mid); }
.row-btn--filled:hover { background: var(--accent); filter: brightness(1.04); }

.row-btn__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.row-btn__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.row-btn__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.row-btn--filled .row-btn__title { color: var(--green-deep); }
.row-btn__sub {
  font-size: 13px;
  font-weight: 400;
  color: rgba(246,239,222,.6);
  line-height: 1.2;
}

.row-btn__arrow {
  display: none;
}

/* Get in touch — wrapped in a dark-green band so it sits cleanly above the sticker bg */
.getintouch-band {
  margin: 0 -28px 0;
  padding: 0 28px 4px;
  background: var(--green);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.getintouch {
  background: none;
  border: 0;
  color: var(--cream);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .005em;
  transition: background .2s ease;
  width: fit-content;
}
.getintouch:hover { background: rgba(246,239,222,.08); }

/* Sticker reserve space — actual stickers live in card background */
.sticker-pad {
  margin-top: auto;
  width: 100%;
  /* Reserve enough room for stickers (~bottom 22% of 1080×1920 bg) */
  aspect-ratio: 1080 / 460;
}

/* ---------- Sheet (modal) ---------- */
.sheet-scrim {
  position: fixed; inset: 0;
  background: rgba(0,30,24,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100;
  animation: scrim .2s ease;
}
@keyframes scrim { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 720px) {
  .sheet-scrim { align-items: center; padding: 32px; }
}

.sheet {
  width: 100%;
  background: var(--green);
  color: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 22px 22px 26px;
  max-height: 92vh;
  overflow-y: auto;
  animation: rise .26s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(148,212,202,.15);
}
@media (min-width: 720px) {
  .sheet { border-radius: 24px; max-height: 86vh; }
}
@keyframes rise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.sheet-eyebrow {
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 4px;
}
.sheet-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: #c2d6ef;
}

.icon-btn {
  background: rgba(246,239,222,.08);
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--cream);
  flex: 0 0 auto;
}
.icon-btn:hover { background: rgba(246,239,222,.16); }

.sheet-body { padding-bottom: 4px; }

/* Events */
.city-chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip {
  background: transparent;
  border: 1.5px solid rgba(246,239,222,.22);
  color: var(--cream);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.chip.is-on { background: var(--mint); color: var(--green-deep); border-color: var(--mint); }

.events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.event {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,212,202,.12);
  border-radius: 18px;
}
.event__date {
  text-align: center;
  background: var(--cream);
  color: var(--green-deep);
  border-radius: 12px;
  padding: 6px 4px;
  line-height: 1;
}
.event__day { font-family: "Courier Prime", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.event__num { font-size: 22px; font-weight: 700; margin-top: 2px; }
.event__mo { font-family: "Courier Prime", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

.event__body { min-width: 0; }
.event__kind {
  font-family: "Courier Prime", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 3px;
}
.event__title { font-size: 16px; font-weight: 600; color: var(--cream); line-height: 1.2; }
.event__spot { font-size: 13px; color: rgba(246,239,222,.6); margin-top: 2px; }
.event__meta { margin-top: 6px; }

.pill {
  display: inline-block;
  font-family: "Courier Prime", monospace;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(222,231,139,.18);
  color: var(--lime);
}
.pill--full { background: rgba(248,159,106,.18); color: var(--orange-warm); }

.btn-mini {
  flex: 0 0 auto;
  background: var(--mint);
  color: var(--green-deep);
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-mini.is-on { background: var(--lime); }
.event.is-full .btn-mini { background: rgba(246,239,222,.14); color: var(--cream); }

.fineprint {
  font-size: 12px;
  color: rgba(246,239,222,.55);
  margin: 14px 0 0;
  line-height: 1.5;
}

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.lead { margin: 0 0 6px; color: rgba(246,239,222,.78); font-size: 14px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: "Courier Prime", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
}
.field__input, .field__select select {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(148,212,202,.2);
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 14px;
  width: 100%;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.field__input:focus, .field__select select:focus {
  border-color: var(--mint);
  background: rgba(255,255,255,.1);
}
.field__input--ta { resize: vertical; min-height: 80px; font-family: inherit; }
.field__select { position: relative; }
.field__select select { appearance: none; cursor: pointer; }
.field__select::after {
  content: "";
  position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio {
  background: transparent;
  border: 1.5px solid rgba(246,239,222,.22);
  color: var(--cream);
  padding: 9px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.radio.is-on { background: var(--mint); color: var(--green-deep); border-color: var(--mint); }

.btn-primary {
  margin-top: 6px;
  background: var(--mint);
  color: var(--green-deep);
  border: 0;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: rgba(246,239,222,.08);
  color: var(--cream);
  border: 0;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Tally embed — form theme is configured on Tally's side, render as-is. */
.tally-wrap {
  background: transparent;
  border-radius: 18px;
  padding: 0;
  margin: -4px -4px 0;
}
.tally-wrap iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
  background: transparent;
  color-scheme: dark;
}

/* Done state */
.done { text-align: center; padding: 18px 4px 4px; }
.done__seal {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  background: var(--lime);
  border-radius: 50%;
  display: grid; place-items: center;
}
.done h3 { font-size: 22px; margin: 0 0 8px; }
.done p { color: rgba(246,239,222,.78); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }

/* Contact — simple */
.contact-simple {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(246,239,222,.78);
}
.contact-simple p {
  margin: 0 0 18px;
}
.contact-simple p:last-child { margin-bottom: 4px; }
.contact-simple a {
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.contact-simple a:hover { color: #c2d6ef; }
