/* New Premise - shared foundation. Palette and type are locked by ../brand/DESIGN_DIRECTIVE.md */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #020D39;
  --navy-deep: #000722;
  --gold: #D2B33B;
  --white: #FFFFFF;
  --ink-70: rgba(2, 13, 57, 0.78);
  --ink-55: rgba(2, 13, 57, 0.62);
  --rule: rgba(2, 13, 57, 0.16);
  --error: #A13A2A;
  --success: #2F7A4C;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(210, 179, 59, 0.4);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

/* ---------- Waitlist form ---------- */

.waitlist-form {
  display: grid;
  gap: 1.5rem;
}

.waitlist-form .field {
  display: grid;
  gap: 0.3rem;
}

.waitlist-form label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-70);
}

.waitlist-form input[type="email"],
.waitlist-form select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(2, 13, 57, 0.4);
  border-radius: 0;
  padding: 0.55rem 0.125rem 0.6rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--navy);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.waitlist-form input[type="email"]:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 1px 0 0 var(--navy);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--ink-55);
}

.waitlist-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23020D39' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.75rem;
  cursor: pointer;
}

.waitlist-form select.is-empty {
  color: var(--ink-55);
}

.waitlist-form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.field-error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error);
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input[type="email"] {
  border-color: var(--error);
  box-shadow: 0 1px 0 0 var(--error);
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--navy);
  color: var(--white);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.form-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-70);
}

.form-done {
  display: none;
}

.waitlist-block.is-done .waitlist-form {
  display: none;
}

.waitlist-block.is-done .form-done {
  display: block;
}

.waitlist-block.is-done .form-note {
  display: none;
}

.form-done .done-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--success);
}

.form-done .done-check circle,
.form-done .done-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-done .done-check circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: np-draw 0.6s var(--ease-out) forwards;
}

.form-done .done-check path {
  stroke-dasharray: 31;
  stroke-dashoffset: 31;
  animation: np-draw 0.4s var(--ease-out) 0.4s forwards;
}

.form-done .done-title,
.form-done .done-line {
  opacity: 0;
  transform: translateY(6px);
  animation: np-rise 0.5s var(--ease-out) 0.55s forwards;
}

.form-done .done-line {
  animation-delay: 0.7s;
}

@keyframes np-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes np-rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .form-done .done-check circle,
  .form-done .done-check path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .form-done .done-title,
  .form-done .done-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.form-done .done-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.25;
}

.form-done .done-line {
  margin-top: 0.4rem;
  color: var(--ink-70);
  font-size: 0.9375rem;
}

.form-fail {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}

.form-fail.is-on {
  display: block;
}

/* ---------- Offerings rows (informational, not interactive) ---------- */

.offers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offers li {
  border-top: 1px solid var(--rule);
}

.offers li:last-child {
  border-bottom: 1px solid var(--rule);
}

.offer {
  display: block;
  padding: 1.15rem 0.125rem;
}

.offer .offer-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.offer .offer-line {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0.25rem auto 0;
  max-width: 44ch;
}
