/* Chance Dating — Website styles (matches app branding) */
:root {
  --primary: #FF7A5C;
  --primary-dark: #e86a4a;
  --secondary: #FAF7F4;
  --accent: #E67A8E;
  --text: #2A2A2A;
  --text-secondary: #666666;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -10px rgba(255, 122, 92, 0.25);
  --shadow-lg: 0 20px 50px -15px rgba(255, 122, 92, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

/* Floating hearts (like Welcome.js) — above hero bg, below content */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.heart {
  position: absolute;
  left: 0;
  font-size: 30px;
  line-height: 1;
  animation: floatUp linear infinite;
  opacity: 0.06;
}

@keyframes floatUp {
  from {
    transform: translateY(0) rotate(var(--heart-rotate, 0deg));
  }
  to {
    transform: translateY(-100vh) rotate(var(--heart-rotate, 0deg));
  }
}

/* Hero entrance animations */
.hero-content .animate-in {
  opacity: 0;
  transform: translateY(28px);
}

.hero-content.played .animate-in {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content.played .animate-in.delay-0 { animation-delay: 0s; }
.hero-content.played .animate-in.delay-1 { animation-delay: 0.12s; }
.hero-content.played .animate-in.delay-2 { animation-delay: 0.24s; }
.hero-content.played .animate-in.delay-3 { animation-delay: 0.36s; }
.hero-content.played .animate-in.delay-4 { animation-delay: 0.48s; }
.hero-content.played .animate-in.delay-5 { animation-delay: 0.6s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered pop-in */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}


body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--secondary);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(255, 122, 92, 0.08), transparent),
              radial-gradient(ellipse 50% 50% at 80% 80%, rgba(230, 122, 142, 0.06), transparent);
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1rem 2rem;
  background: rgba(250, 247, 244, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.header-logo {
  height: 48px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 2.5rem auto 1.5rem;
  height: 180px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem 0;
  padding: 0;
  border: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--primary);
  margin: 0 0 1.25rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text);
  text-align: center;
  margin: 0 0 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.section-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.5rem 0 0;
}

/* How it works */
.how-it-works {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius);
  margin: 2rem auto;
  padding: 3rem 2rem;
  max-width: 900px;
  box-shadow: 0 4px 24px rgba(42, 42, 42, 0.06);
  text-align: center;
}

.how-it-works .section-title {
  text-align: center;
}

.steps {
  display: grid;
  gap: 1.75rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  min-width: 0;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.step p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Schools */
.school-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.school-grid li {
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  text-align: center;
}

.school-note {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.school-note a,
.school-note-link {
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.school-note-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Bring Chance to your school block */
.bring-chance-block {
  margin-top: 3.5rem;
  padding: 2.75rem 2rem;
  background: linear-gradient(145deg, var(--white) 0%, rgba(255, 247, 244, 0.98) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(42, 42, 42, 0.08), 0 0 0 1px rgba(255, 122, 92, 0.08);
  text-align: center;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.bring-chance-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.bring-chance-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: -0.01em;
}

.bring-chance-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.bring-chance-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 480px;
}

@media (min-width: 520px) {
  .bring-chance-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .bring-chance-actions .school-search-wrap {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    margin: 0;
  }
  .bring-chance-actions .bring-chance-apply {
    flex-shrink: 0;
  }
}

.school-search-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
}

.school-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.5;
  pointer-events: none;
}

.school-search-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.school-search-input::placeholder {
  color: var(--text-secondary);
}

.school-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 122, 92, 0.2);
}

.school-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.school-search-dropdown[hidden] {
  display: none;
}

.school-search-dropdown-option {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  border: none;
  background: none;
  width: 100%;
}

.school-search-dropdown-option:hover,
.school-search-dropdown-option[aria-selected="true"] {
  background: var(--secondary);
  color: var(--primary);
}

.bring-chance-apply {
  min-width: 140px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.bring-chance-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 122, 92, 0.35);
}

/* Request campus modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--secondary);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-description {
  margin: 0;
  padding: 1.25rem 1.5rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.campus-form {
  padding: 1.25rem 1.5rem 1.5rem;
}

.modal-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.modal-label:first-of-type {
  margin-top: 0;
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.modal-input::placeholder {
  color: #999;
}

.modal-textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.25em;
}

.modal-status.success {
  color: #0a7c42;
}

.modal-status.error {
  color: #c53030;
}

.modal-submit {
  width: 100%;
  margin-top: 1.25rem;
}

.required {
  color: var(--primary);
}

/* Honeypot: hidden from users; bots that fill it get rejected by Formspree */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Campus request – Typeform-style (dark, one question per step) */
.campus-typeform-overlay .modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.campus-typeform-panel {
  background: #1a1a1a;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0;
}

.campus-typeform-header {
  border: none;
  padding: 1rem 1.25rem;
  justify-content: flex-end;
}

.campus-typeform-close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
}

.campus-typeform-close:hover {
  color: #fff;
}

.typeform-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.typeform-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--primary);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

.campus-typeform {
  padding: 2rem 2rem 2.5rem;
}

.typeform-step {
  display: none;
}

.typeform-step.active {
  display: block;
  animation: typeformIn 0.35s ease;
}

@keyframes typeformIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typeform-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.typeform-question {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 1rem;
  cursor: default;
}

.typeform-hint {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: -0.5rem 0 1rem;
}

.typeform-optional {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.typeform-input,
.typeform-textarea {
  width: 100%;
  padding: 0.75rem 0 0.85rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.typeform-input::placeholder,
.typeform-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.typeform-input:focus,
.typeform-textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.typeform-textarea {
  min-height: 100px;
  resize: vertical;
}

.typeform-choices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.typeform-choice {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 1.05rem;
  transition: background 0.2s, border-color 0.2s;
}

.typeform-choice:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.typeform-choice input {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--primary);
}

/* A/B/C letter box only for gut-check step */
.typeform-choices-gut .typeform-choice span:first-of-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.typeform-ok {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.typeform-ok:hover {
  background: #f0f0f0;
}

.typeform-ok:active {
  transform: scale(0.98);
}

.typeform-submit {
  margin-top: 0.5rem;
  background: var(--primary);
  color: #fff;
}

.typeform-submit:hover {
  background: #e66a4a;
  color: #fff;
}

.campus-typeform .modal-status {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.campus-typeform .modal-status.success {
  color: #6ee7b7;
}

.campus-typeform .modal-status.error {
  color: #fca5a5;
}

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

/* About */
.section.about {
  position: relative;
  z-index: 2;
}

.about-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 24px rgba(42, 42, 42, 0.06);
}

.about-content p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Bottom CTA */
.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin: 0 0 1.5rem;
}

/* Footer */
.footer {
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .header {
    padding: 0.875rem 1rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .how-it-works {
    margin: 1rem;
    padding: 2rem 1.25rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
