/* ═══════════════════════════════════════════════════════════════
   Sidetake landing — the sign-up sheet, its tabs and its form.
   Tokens and shell live in landing.css.
   ═══════════════════════════════════════════════════════════════ */

/* ══════════ sheets (sign-up + thanks) ══════════ */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gut);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.sheet.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 6, 0.76);
  backdrop-filter: blur(6px);
}
.sheet__panel {
  position: relative;
  width: min(100%, 34rem);
  max-height: calc(100vh - var(--gut) * 2);
  overflow-y: auto;
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(165deg, #0c1417, #070d0f);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
  translate: 0 14px;
  scale: 0.985;
  transition: translate var(--dur-slow) var(--ease), scale var(--dur-slow) var(--ease);
}
.sheet.is-open .sheet__panel {
  translate: 0 0;
  scale: 1;
}
.sheet__panel--sm {
  width: min(100%, 29rem);
  text-align: center;
}
.sheet__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    rotate var(--dur) var(--ease);
}
.sheet__close:hover {
  color: var(--text);
  border-color: var(--line-2);
  rotate: 90deg;
}
.sheet__title {
  margin-top: 0.7rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
.sheet__sub {
  margin-top: 0.7rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.thanks-orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--sage), var(--sage-deep) 62%, #0a2c22);
  box-shadow: 0 0 40px -6px rgba(57, 193, 142, 0.6);
  animation: float 5s ease-in-out infinite;
}
.sheet__panel--sm .stores {
  justify-content: center;
}

/* tabs */
.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.tab {
  position: relative;
  z-index: 1;
  padding: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tab.is-active {
  background: rgba(57, 193, 142, 0.16);
  color: var(--text);
}

/* form */
.form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.3rem;
}
.field {
  display: grid;
  gap: 0.38rem;
}
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(238, 245, 242, 0.28);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(57, 193, 142, 0.6);
  background: rgba(57, 193, 142, 0.05);
}
.field textarea {
  min-height: 6rem;
  resize: vertical;
}
.field__counter {
  justify-self: end;
  font-size: 0.72rem;
  color: var(--text-3);
}
.field__counter.is-near-limit {
  color: var(--gold);
}
.field--mentor {
  display: none;
}
.field--mentor.is-visible {
  display: grid;
}

.hint {
  font-size: 0.82rem;
  color: var(--text-3);
}
.hint.is-error {
  color: var(--rose);
}
.submit-btn {
  margin-top: 0.3rem;
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
