/* 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 .footer { position: relative; }
.waitlist .nav__cta { background: var(--navy); border-color: var(--navy); color: var(--white); }
.waitlist .nav__cta:hover { background: var(--navy-2); }

.wl {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr) minmax(0, 360px); align-items: center; gap: 24px;
  min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + clamp(24px, 5vh, 56px)) max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(24px, 5vh, 56px);
}
.wl__bg { position: absolute; inset: 0; z-index: -1; margin: 0; background: var(--navy-deep); }
.wl > section.wl__panel { grid-column: 1; }
.wl > .wl__info { grid-column: 3; align-self: end; }
.wl__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }

/* One solid white panel: form, then a compact "What you're signing up for" list */
.wl__panel { width: 100%; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--white); box-shadow: 0 30px 60px -30px rgba(3, 25, 45, 0.45); }
.wl .eyebrow { margin: 0 0 14px; }
.wl__title { margin: 0; font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--navy); }
.wl__lead { margin: 12px 0 0; font-weight: 300; font-size: 1.0625rem; line-height: 1.55; color: var(--graphite); }

/* Form: white inputs, navy hairlines */
.form { display: grid; gap: 16px; margin-top: 28px; }
.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; } }

.wl__info { padding: 26px 28px 22px; }
.wl__info .eyebrow { margin-bottom: 8px; font-size: 0.6875rem; }
.wl__info ul { margin: 0; padding: 0; list-style: none; }
.wl__info li { position: relative; padding: 6px 0 6px 22px; font-weight: 300; font-size: 0.875rem; line-height: 1.5; color: var(--graphite); }
.wl__info li::before { content: ""; position: absolute; left: 0; top: calc(6px + 0.75em); width: 12px; height: 1px; background: var(--navy); }
.wl__info a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(9, 73, 125, 0.35); }

@media (max-width: 899px) {
  .wl { display: block; min-height: 0; padding: var(--header-h) 0 0; }
  .wl__bg { position: relative; inset: auto; z-index: 0; height: 52svh; min-height: 300px; }
  .wl__bg img { object-position: 48% 50%; }
  .wl__panel { width: auto; margin: -28px 12px 0; position: relative; padding: 28px 20px 32px; box-shadow: none; }
  .wl > .wl__info { margin: 0 12px; padding-top: 8px; border-top: 1px solid var(--hairline); border-radius: 0; }
}

/* Entrance: one quiet fade for the form column */
.js .wl__panel { animation: wl-in 900ms var(--ease) 150ms both; }
@keyframes wl-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .js .wl__panel, .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; }
