/* BoatTalent reference sheets — full-bleed hero like landing, form + OTP unlock. */

:root {
  --teal: #0d9aa8;
  --teal-dark: #0a7d89;
  --ink: #0b1c2c;
  --muted: rgba(255,255,255,0.82);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: #061018;
}

.bt-ref-hero-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bt-ref-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bt-ref-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,16,24,0.55) 0%, rgba(6,16,24,0.35) 35%, rgba(6,16,24,0.78) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(13,154,168,0.18), transparent 55%);
}
.bt-ref-top, .bt-ref-panel {
  position: relative;
  z-index: 2;
}
.bt-ref-top {
  padding: 1.25rem 1.5rem 0;
}
.bt-ref-brand { display: inline-block; text-decoration: none; }
.bt-ref-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: min(420px, 92vw);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.bt-ref-panel {
  flex: 1;
  max-width: 46rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}
.bt-ref-panel h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  color: #fff;
}
.bt-refpage-lead {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}
.bt-refpage-calc {
  margin: 0 0 1.35rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.98rem;
}
.bt-refpage-calc a { color: #9ef0f7; font-weight: 700; }
.bt-refpage-foot {
  margin: 1.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.card.ref-sheets {
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  color: #1a365d;
}
.ref-h {
  font-size: 1.2rem;
  color: #1a365d;
  font-weight: 800;
  margin: 0 0 0.25rem;
}
.ref-sub {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.98rem;
}
.ref-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.ref-list li { margin: 0; padding: 0; }
.ref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ref-sheets.ref-open .ref-item {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #087a81;
}
.ref-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.ref-name { display: block; color: inherit; }
.ref-blurb {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: #64748b;
}
.ref-sheets.ref-open .ref-blurb { color: #0f766e; }
.ref-tag {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  white-space: nowrap;
}
.ref-sheets.ref-open .ref-tag {
  background: #087a81;
  color: #fff;
}

.ref-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.ref-form .ref-field { margin: 0; }
.ref-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 0.3rem;
}
.ref-form .req { color: #b91c1c; }
.ref-form input[type="text"],
.ref-form input[type="email"],
.ref-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.65rem;
  font: inherit;
  font-size: 1rem;
  color: #1a365d;
  background: #fff;
}
.ref-form input:focus,
.ref-form select:focus {
  outline: none;
  border-color: #087a81;
  box-shadow: 0 0 0 3px rgba(8, 122, 129, 0.15);
}
.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.ref-form .ref-go,
.btn-primary.ref-go {
  align-self: flex-start;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.65rem;
  background: #087a81;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.ref-form .ref-go:hover { background: #0f766e; }
.btn-secondary {
  padding: 0.7rem 1.1rem;
  border: 2px solid #10243e;
  border-radius: 0.65rem;
  background: #fff;
  color: #10243e;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.ref-otp {
  padding: 0.9rem 1rem;
  border: 2px solid #1caae2;
  border-radius: 10px;
  background: #f1faff;
}
.ref-otp-hint {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: #10243e;
}
.ref-otp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.ref-err {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  color: #b91c1c;
}
.ref-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .bt-ref-logo { height: 56px; }
  .bt-ref-panel { padding: 1.1rem 1.1rem 2rem; }
  .ref-grid { grid-template-columns: 1fr; }
  .ref-form .ref-go { width: 100%; text-align: center; }
  .ref-item { align-items: flex-start; }
}
