/*
 * Paraguai.lol coming-soon page.
 * Hand-written replacement for the Tailwind play CDN build of the original page:
 * same palette, type scale, spacing and breakpoints (sm 640px, md 768px, lg 1024px).
 * No inline styles anywhere, so the CSP can stay `style-src 'self'`.
 */

/* ---------- Fonts (Poppins, SIL OFL 1.1, see /fonts/OFL-poppins.txt) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/poppins-latin-900-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --red: #e21e26;
  --red-hover: #c91820;
  --blue: #203387;
  --dark: #111827;
  --gray: #6b7280;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
}

/* ---------- Minimal reset (Tailwind preflight subset) ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--gray-200); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body, h1, p { margin: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
input, button { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; }
[hidden] { display: none !important; }

/* ---------- Page ---------- */
body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #ffffff;
  color: var(--dark);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background-color: var(--red); color: #ffffff; }

.bg-blob-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-blob { position: absolute; filter: blur(100px); opacity: 0.6; border-radius: 50%; }
.blob-red {
  background: linear-gradient(135deg, rgba(226, 30, 38, 0.2) 0%, rgba(255, 180, 180, 0.1) 100%);
  width: 50vw; height: 50vw; top: -10vw; left: -10vw;
}
.blob-blue {
  background: linear-gradient(135deg, rgba(32, 51, 135, 0.15) 0%, rgba(200, 210, 255, 0.1) 100%);
  width: 60vw; height: 60vw; bottom: -20vw; right: -10vw;
}

.page {
  position: relative;
  z-index: 10;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.logo { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.logo img { width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05)); }

.intro { max-width: 56rem; margin: 0 auto; }

.headline {
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--dark);
}
.headline-accent { position: relative; display: inline-block; color: var(--red); }
.headline-underline {
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 0.75rem;
  color: var(--red);
  opacity: 0.8;
}

.lead {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 500;
  color: var(--gray);
}

/* ---------- Signup ---------- */
.signup { width: 100%; max-width: 28rem; margin: 3rem auto 0; }
.signup-form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.honeypot { display: none; }

.field { position: relative; width: 100%; }
.field-icon {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  pointer-events: none;
  color: var(--gray-400);
  /* Above the input, whose backdrop-filter would otherwise paint over and blur it. */
  z-index: 1;
}
.field-icon svg { width: 1.25rem; height: 1.25rem; }
.field-input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.field-input::placeholder { color: var(--gray-400); opacity: 1; }
.field-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--red), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.submit {
  flex-shrink: 0;
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 1rem;
  background-color: var(--red);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.submit:hover {
  background-color: var(--red-hover);
  box-shadow: 0 10px 15px -3px rgba(226, 30, 38, 0.3), 0 4px 6px -4px rgba(226, 30, 38, 0.3);
}
.submit:active { transform: scale(0.95); }
.submit:disabled { opacity: 0.7; cursor: not-allowed; }
.submit:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.submit-busy { display: inline-flex; align-items: center; gap: 0.5rem; }
.spinner { width: 1.25rem; height: 1.25rem; margin-left: -0.25rem; color: #ffffff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.feedback {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.feedback-success { color: #047857; background-color: #ecfdf5; border-color: #a7f3d0; }
.feedback-error { color: var(--red); background-color: #fef2f2; border-color: #fecaca; }
/* No-JS outcome messages: shown only when the redirect's fragment targets them. */
.feedback-target { display: none; }
.feedback-target:target { display: inline-block; }

.note { margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--gray-500); }
.privacy-note { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1rem; color: var(--gray-500); }
.privacy-note a { color: inherit; text-decoration: underline; }
.privacy-note a:hover { color: var(--dark); }

.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--gray-400);
}

/* ---------- Privacy page ---------- */
.legal { max-width: 42rem; align-items: stretch; justify-content: flex-start; padding-top: 4rem; text-align: left; }
.legal h1 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: #374151; font-size: 1rem; line-height: 1.625; }
.legal ul { margin: 0; padding-left: 1.25rem; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal .back { display: inline-block; margin-top: 2rem; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .page { padding-left: 1.5rem; padding-right: 1.5rem; }
  .headline { font-size: 3.75rem; }
  .lead { font-size: 1.25rem; }
  .signup { max-width: 32rem; }
  .signup-form { flex-direction: row; }
  .field-input { padding-top: 1.25rem; padding-bottom: 1.25rem; border-radius: 9999px; font-size: 1.125rem; line-height: 1.75rem; }
  .submit { width: auto; padding-top: 1.25rem; padding-bottom: 1.25rem; border-radius: 9999px; font-size: 1.125rem; line-height: 1.75rem; }
}
@media (min-width: 768px) {
  .headline { font-size: 4.5rem; }
  .lead { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .page { padding-left: 2rem; padding-right: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .submit, .field-input { transition: none; }
}
