/* Imagine This — School Pack landing page
   Brand colors and font sourced from imaginethis.org.uk and the brand SVGs. */

:root {
  --teal:        #19AFBF;
  --purple:      #A8409B;
  --pink:        #FF92CE;
  --dark:        #141919;
  --muted:       #666666;
  --bg-soft:     #FAF6FA;
  --bg-card:     #FFFFFF;
  --border:     #EFEAF0;
  --gradient:   linear-gradient(135deg, #19AFBF 0%, #A8409B 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background: var(--bg-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--purple); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ====== Corner logo (returns to imaginethis.org.uk) =========== */

.corner-logo {
  position: absolute;
  top: 1.6rem;
  left: 2rem;
  z-index: 5;
  display: inline-block;
  transition: opacity 0.15s;
}

.corner-logo:hover { opacity: 0.85; }

.corner-logo img {
  display: block;
  height: 52px;
  width: auto;
}

@media (max-width: 640px) {
  .corner-logo { top: 1.1rem; left: 1.2rem; }
  .corner-logo img { height: 40px; }
}

/* ====== Hero ================================================== */

.hero {
  position: relative;
  background: var(--gradient);
  color: #fff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  background-image: url("assets/bubble-galaxy.svg");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.18;
  width: 380px; height: 380px;
  top: -80px; right: -120px;
}

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

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 1.2rem;
}

.hero .lead {
  font-size: 1.15rem;
  margin: 0 auto 2rem;
  max-width: 580px;
  opacity: 0.95;
}

.hero .pill-cta {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero .pill-cta:hover { background: #ff7ac5; color: #fff; }

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1.05rem; }
}

/* ====== Section labels ======================================== */

.section-label {
  display: block;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
}

.section-headline {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--purple);
  margin: 0 0 0.4rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-headline strong {
  font-weight: 800;
  color: var(--purple);
}

.section-squiggle {
  display: block;
  margin: 0.6rem auto 0;
  width: 80px;
  height: 22px;
}

/* ====== What's inside ========================================= */

.whats-inside {
  padding: 4rem 0 2rem;
}

.whats-inside .container-narrow { max-width: 720px; }

.bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 1rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.05rem;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--gradient);
}

.bullets li::after {
  content: "✓";
  position: absolute;
  left: 0; top: 0.05rem;
  width: 1.4rem; height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .bullets { grid-template-columns: 1fr; }
}

/* ====== Form section ========================================== */

.form-section {
  padding: 3rem 0 5rem;
  position: relative;
}

.form-section .form-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 6px 30px rgba(168, 64, 155, 0.10);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.form-section .form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient);
}

.form-section h2 {
  font-size: 1.4rem;
  color: var(--purple);
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.form-section .form-intro {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.donorfy-embed { min-height: 360px; }

.placeholder-box {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin: 0;
  background: var(--bg-soft);
  font-style: italic;
}

/* ====== Access page (post-submit) ============================ */

.thanks-hero {
  background: var(--gradient);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.thanks-hero::after {
  content: "";
  position: absolute;
  background-image: url("assets/bubble-grad.svg");
  background-repeat: no-repeat;
  background-size: contain;
  width: 320px; height: 320px;
  top: -80px; left: -100px;
  opacity: 0.15;
  pointer-events: none;
}

.thanks-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.thanks-hero h1 {
  font-size: 2.4rem;
  margin: 0 0 0.6rem;
  font-weight: 800;
}

.thanks-hero p {
  margin: 0 auto;
  max-width: 540px;
  font-size: 1.05rem;
  opacity: 0.95;
}

.flipbook-section { padding: 2.5rem 0 4rem; }

/* Wider container on the access page to give the landscape flipbook room */
.flipbook-section .container {
  max-width: 1200px;
}

.flipbook-wrap {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(168, 64, 155, 0.10);
  border: 1px solid var(--border);
}

.flipbook-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  height: 85vh;
  min-height: 640px;
  max-height: 820px;
}

/* Keep the contact card narrower than the flipbook so it doesn't look stretched */
.flipbook-section .contact-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.flipbook-coming-soon {
  padding: 4rem 2rem;
  text-align: center;
}

.flipbook-coming-soon h2 {
  color: var(--purple);
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.flipbook-coming-soon p {
  color: var(--muted);
  margin: 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.contact-card h2 {
  font-size: 1.2rem;
  color: var(--purple);
  margin: 0 0 0.3rem;
}

.contact-card p { color: var(--muted); margin: 0 0 1rem; }

.contact-card a.email-pill {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
}

.contact-card a.email-pill:hover { background: #16a0af; color: #fff; }

/* ====== Footer ================================================ */

.site-footer {
  background: var(--gradient);
  color: #fff;
  padding: 2.5rem 0 2.5rem;
  text-align: center;
}

.site-footer .footer-logo {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto 0.8rem;
}

.site-footer .footer-meta {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}
