/* ============================================
   ResumeForge.ai Waitlist
   Navy/slate, clean, mobile-first
   WCAG AA contrast verified
   ============================================ */

/* --- Hidden attribute must always win --- */
[hidden] {
  display: none !important;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --green-700: #15803d;
  --green-50: #f0fdf4;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 640px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hide-mobile {
  display: none;
}
@media (min-width: 640px) {
  .hide-mobile {
    display: inline;
  }
}


/* --- Page layout --- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* --- Nav --- */
.nav {
  border-bottom: 1px solid var(--slate-200);
  padding: 0 1.25rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 3.5rem;
  display: flex;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--navy-800);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover {
  text-decoration: none;
}
.logo strong {
  font-weight: 700;
  color: var(--blue-700);
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--blue-700);
  color: var(--white);
  border-radius: 0.375rem;
}


/* --- Hero --- */
.hero {
  padding: 3rem 1.25rem 2.5rem;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}
@media (min-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }
}

.subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-500); /* 4.6:1 on white — AA */
}


/* --- Form --- */
.form {
  margin-top: 2rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
  }
}

.form input[type="email"] {
  flex: 1;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--navy-800);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s;
}
.form input[type="email"]::placeholder {
  color: var(--slate-400);
}
.form input[type="email"]:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form input[type="email"].input-error {
  border-color: var(--red-600);
}

.form button {
  height: 3rem;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--white);
  background: var(--blue-700);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
}
.form button:hover {
  background: var(--blue-600);
}
.form button:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}
.form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-help {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate-400);
}


/* --- Form messages --- */
.form-message {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-error {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid rgba(220, 38, 38, 0.15);
}
.form-success {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid rgba(21, 128, 61, 0.15);
  align-items: flex-start;
  gap: 0.75rem;
}
.form-success:not([hidden]) {
  display: flex;
}
.form-success svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.form-success p {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}


/* --- Social proof --- */
.social-proof {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  font-size: 0.9rem;
  color: var(--slate-500);
  font-style: italic;
}


/* --- Details section --- */
.details {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 3rem 1.25rem;
}
.details-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.details h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.015em;
}
.details > .details-inner > p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.feature-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 0.5rem;
}
.feature strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-800);
}
.feature p {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.5;
}


/* --- Footer --- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--slate-200);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--slate-400);
}
.footer a {
  color: var(--slate-500);
  font-weight: 500;
}
.footer a:hover {
  color: var(--navy-800);
}
