/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.button--primary:hover {
  background: var(--blue-600);
  box-shadow: var(--shadow-md);
}

.button--gold {
  background: var(--gold-500);
  color: var(--blue-900);
  box-shadow: var(--shadow-sm);
}

.button--gold:hover {
  background: var(--gold-600);
  box-shadow: var(--shadow-md);
}

.button--ghost {
  background: transparent;
  border-color: var(--slate-300);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.button--ghost-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button--ghost-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button--lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.0625rem;
}

/* ---------- Eyebrows & section heads ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
}

.eyebrow--light {
  color: var(--gold-500);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  color: var(--ink);
}

.section-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 1rem auto 0;
}

/* ---------- Tags ---------- */

.tag {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  margin-left: 0.5rem;
}

/* ---------- Form fields ----------
   Two naming sets, one set of rules. The interest form (interest.html) uses
   .interest__*; the waitlist forms (index.html, coming-soon.html) use the
   shorter .field/.field-error/.form-error/.form-success names. Both are the
   same component, so every selector below lists both rather than keeping a
   second copy of the styling that could drift from this one. */

.interest__field,
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.interest__field label,
.field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}

.interest__optional,
.field__optional {
  font-weight: 400;
  color: var(--slate-500);
}

.interest__field input,
.interest__field select,
.interest__field textarea,
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.interest__field textarea,
.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.interest__field select,
.field select {
  appearance: none;
  /* The chevron is a background image so the native control can be replaced
     without an extra element beside every select. */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%235b6b7e' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.75rem;
  padding-right: 2.25rem;
}

/* A placeholder option is what makes an untouched select show a prompt
   rather than silently defaulting to the first real choice. */
.interest__field select:has(option[value=""]:checked),
.field select:has(option[value=""]:checked) {
  color: var(--slate-500);
}

.interest__field input:focus,
.interest__field select:focus,
.interest__field textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px var(--blue-100);
}

/* The invalid state is driven by JS (aria-invalid), not by :invalid -- the
   form is novalidate, so the browser never sets :invalid on its own, and a
   field the visitor has not reached yet must not render as an error. */
.interest__field input[aria-invalid="true"],
.interest__field select[aria-invalid="true"],
.interest__field textarea[aria-invalid="true"],
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.interest__field-error,
.field-error {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #c0392b;
}

/* ---------- Form-level notices ---------- */

.interest__error,
.form-error {
  border: 1px solid #c0392b;
  background: #fdecea;
  color: #922b21;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.interest__success,
.form-success {
  border: 1px solid var(--green-600);
  background: var(--green-100);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.25rem 1.375rem;
}

.interest__success-title,
.form-success__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-600);
  margin-bottom: 0.375rem;
}

.interest__success-text,
.form-success__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--blue-700);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Cookie notice ----------
   A consent bar pinned to the bottom of the viewport. Sits BELOW the mobile
   menu (z-index 60) so an open menu covers it, and above the nav (50) so it is
   never tucked behind a floating header. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blue-900);
  color: var(--slate-200);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -6px 24px rgba(18, 38, 61, 0.18);
}

/* An author `display: flex` beats the browser's own `[hidden] { display: none }`,
   so hiding the bar from js/main.js would leave it on screen without this. Same
   guard as #waitlist-form[hidden] in sections.css, and for the same reason. */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 62ch;
}

.cookie-banner__text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}

.cookie-banner__text a:hover {
  color: var(--gold-500);
}

/* Held at its natural size: the bar is a flex row, and a stretching button
   reads as the bar's subject rather than as its acknowledgement. */
.cookie-banner__accept {
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .cookie-banner {
    padding: 1rem 2rem;
  }
}
