/* Premium Sailing: /signup waitlist page and the /privacy page. Builds on base.css. */

/* ================= /signup: calm editorial split =================
   Desktop: form column on white (left), photo plus "What you're signing up for" on navy (right).
   Mobile: form first, info after. Solid surfaces only: no blur, no glow, no gradient cards. */
.waitlist { background: var(--white); }
.waitlist .site-header { color: var(--navy); }
.waitlist .site-header::before { opacity: 1; background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
.waitlist .nav__cta { background: var(--navy); border-color: var(--navy); color: var(--white); }
.waitlist .nav__cta:hover { background: var(--navy-2); }

.wl {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh; min-height: 100svh; padding-top: var(--header-h);
}
.wl__form { display: flex; align-items: center; padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 96px); border-top: 1px solid var(--hairline); }
.wl__inner { width: 100%; max-width: 420px; margin-left: auto; margin-right: clamp(0px, 4vw, 64px); }
.wl .eyebrow { margin: 0 0 18px; }
.wl__title { margin: 0; font-weight: 300; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--navy); }
.wl__lead { margin: 16px 0 0; font-weight: 300; font-size: 1.125rem; line-height: 1.55; color: var(--graphite); }

/* Form: white inputs, navy hairlines */
.form { display: grid; gap: 18px; margin-top: 36px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 12px; border: 1px solid rgba(9, 73, 125, 0.24); background: var(--white); color: var(--navy);
  font-size: 1rem; /* 16px+ prevents iOS zoom on focus */
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field input:hover { border-color: rgba(9, 73, 125, 0.45); }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(9, 73, 125, 0.14); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__error { margin: 0; font-size: 0.875rem; line-height: 1.45; color: #b3261e; }
.field__error:empty { display: none; }
.form__submit { width: 100%; min-height: 52px; margin-top: 6px; }
.form__submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.status { margin: 16px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--navy); }
.status:empty { display: none; }
.consent { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 0.8125rem; line-height: 1.55; color: var(--graphite); }
.consent a, .status a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(9, 73, 125, 0.35); }

.card__done { outline: none; }
.card__done:not([hidden]) { animation: done-in 600ms var(--ease) both; }
@keyframes done-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Right: photo on top, the facts below on solid navy */
.wl__info { display: flex; flex-direction: column; background: var(--navy-deep); color: rgba(255, 255, 255, 0.88); }
.wl__photo { flex: 1 1 auto; min-height: 220px; margin: 0; position: relative; overflow: hidden; }
.wl__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.wl__list { padding: clamp(32px, 5vh, 56px) clamp(24px, 5vw, 72px) clamp(36px, 6vh, 64px); }
.wl__list .eyebrow { color: rgba(255, 255, 255, 0.7); }
.wl__list ul { margin: 0; padding: 0; list-style: none; max-width: 34rem; }
.wl__list li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-weight: 300; font-size: 1rem; line-height: 1.55; }
.wl__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.wl__list li::before { content: ""; position: absolute; left: 0; top: calc(14px + 0.78em); width: 14px; height: 1px; background: rgba(255, 255, 255, 0.7); }
.wl__list a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.wl__list :focus-visible { outline-color: var(--white); }

@media (max-width: 899px) {
  .wl { grid-template-columns: 1fr; min-height: 0; }
  .wl__form { padding: 48px var(--gutter) 56px; }
  .wl__inner { margin: 0 auto; }
  .wl__photo { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .wl__list { padding: 32px var(--gutter) 48px; }
}

/* Entrance: one quiet fade for the form column */
.js .wl__inner { animation: wl-in 900ms var(--ease) both; }
@keyframes wl-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .js .wl__inner, .card__done:not([hidden]) { animation: fade-in 300ms ease both !important; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-contrast: more) { .field input { border-color: var(--navy); } }

/* ================= /privacy: plain text page on the navy ground ================= */
.signup { background: var(--navy-deep); color: var(--white); overflow-x: hidden; }
.logo:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.legal__main { width: min(100% - 2 * var(--gutter), 720px); margin: 0 auto; padding: calc(var(--header-h) + clamp(48px, 10vh, 120px)) 0 clamp(64px, 12vh, 140px); }
.legal__main .eyebrow { color: rgba(255, 255, 255, 0.72); margin: 0 0 14px; }
.legal__main .title { color: var(--white); }
.legal__main h2 { margin: 48px 0 12px; font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }
.legal__main p:not(.eyebrow), .legal__main li { font-weight: 300; font-size: 1.0625rem; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.legal__main ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal__main li { margin: 0 0 8px; }
.legal__main strong { font-weight: 400; color: var(--white); }
.legal__main a:not(.btn) { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); overflow-wrap: anywhere; }
.legal__main .todo { padding: 1px 6px; border-radius: 4px; background: rgba(255, 214, 102, 0.18); color: #ffe6a6; font-weight: 400; }
.legal__updated { margin-top: 8px !important; font-size: 0.875rem !important; color: rgba(255, 255, 255, 0.6) !important; }
.legal__main .btn { margin-top: 24px; }
