:root {
  --navy: #0B1F3A;
  --ink: #E8ECF5;
  --accent: #2F7DE1;
}

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

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--navy);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

/* The SVG is white-on-transparent and sits directly on the page. */
.logo {
  display: block;
  width: min(92vw, 1200px);
  height: auto;
  max-height: 88dvh;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Feedback popup ---------- */

.feedback-trigger {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.feedback-trigger:hover { transform: translateY(-2px); filter: brightness(1.05); }
.feedback-trigger:focus-visible,
.feedback-submit:focus-visible,
.feedback-close:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.feedback {
  width: min(32rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid rgb(232 236 245 / 0.15);
  border-radius: 16px;
  background: #12294A;
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}
.feedback::backdrop {
  background: rgb(4 10 20 / 0.7);
  backdrop-filter: blur(3px);
}

.feedback-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.feedback-header h2 { margin: 0; font-size: 1.25rem; }

.feedback-close {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.field { display: grid; gap: 0.35rem; font-size: 0.9rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgb(232 236 245 / 0.25);
  border-radius: 10px;
  background: var(--navy);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(47 125 225 / 0.25); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #FF8A80; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.feedback-status { margin: 0; min-height: 1.25em; font-size: 0.9rem; }
.feedback-status.is-error { color: #FF8A80; }
.feedback-status.is-success { color: #8BE3A6; }

.feedback-submit {
  justify-self: end;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.feedback-submit:disabled { opacity: 0.6; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .feedback-trigger { transition: none; }
}
