/* summer-info.css
   Styles specific to the Toterly Summer Info page
   ---------------------------------------------------------------------- */

/* ========== Layout ========== */
main.container {
  padding: 2rem 1rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* ========== Headings ========== */
main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: center;
}

main h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--accent);
}

main h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #333;
}

/* ========== Text & Lists ========== */
main p {
  margin-bottom: 1rem;
}

main ul,
main ol {
  margin: 1rem 0 1rem 1.25rem;
  padding-left: 0.5rem;
}

main li {
  margin-bottom: 0.5rem;
}

/* Sub-list styling inside "What You Can Store" */
main ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  margin-left: 1.25rem;   /* indent sublist */
  list-style-type: disc;  /* filled bullets */
  color: #555;            /* softer gray for examples */
  font-size: 0.95rem;     /* slightly smaller */
}

main ul ul li {
  margin-bottom: 0.25rem;
}

/* ========== Tips / Highlight ========== */
.tip {
  border-left: 4px solid var(--accent);
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 0.25rem;
}

/* ========== Box/tote sizing image and notes ========== */
.box-size {
  margin: 2rem 0;
  text-align: center;
}

.box-size img {
  max-width: 300px;
  height: auto;
  margin: 1rem 0;
}

.box-instructions {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

/* Example code block (like labels) */
pre {
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
}

/* ========== CTA Hero (email notify) ========== */
.cta-hero {
  background: var(--accent);
  color: #fff;
  padding: 1.5rem 0 1.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cta-hero .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cta-hero h2 {
  margin: 0 0 0.25rem;
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
}

.cta-hero .cta-sub {
  margin: 0.25rem 0 0.75rem;
  text-align: center;
  font-size: 1.05rem;
}

.cta-hero .cta-points {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.25rem 0 1rem;
  padding-left: 0;
  list-style: none;
  font-size: 0.95rem;
  opacity: 0.95;
}

.cta-hero .cta-points li {
  position: relative;
  padding-left: 1.1rem;
}

.cta-hero .cta-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

/* CTA actions row */
.cta-actions {
  text-align: center;
  margin: 0.5rem 0 0.75rem;
}

/* Pill-style toggle chip (matches homepage behavior) */
.cta-chip {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid rgba(255,255,255,0.0);
}

.cta-chip:hover,
.cta-chip:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  outline: none;
}

.cta-chip:focus-visible {
  border-color: #fff;
}

/* Reveal form block */
.reveal-form {
  max-width: 560px;
  margin: 0.75rem auto 0;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Form layout */
.cta-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

#summer-email {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  outline: none;
  font-size: 1rem;
}

#summer-email:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

/* Submit button (re-usable CTA button) */
.cta-button {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  outline: none;
}

.cta-button.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* Privacy note + error */
.cta-privacy {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.form-error {
  margin-top: 0.5rem;
  color: #ffe1e1;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Thank-you state */
#summer-thanks p {
  margin: 0.5rem 0 0;
  font-weight: 600;
}
/* Under the How It Works heading */
.how-it-works-illustration {
  margin: 1rem 0 1.25rem;
}

.how-it-works-illustration img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;          /* optional */
  box-shadow: 0 2px 10px rgba(0,0,0,.06); /* optional */
}
/* A11y helper */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========== Responsive Tweaks ========== */
@media (max-width: 768px) {
  main.container {
    padding: 1rem;
  }

  .box-size img {
    max-width: 90%;
  }

  main h1 {
    font-size: 1.6rem;
  }

  main h2 {
    font-size: 1.25rem;
  }

  .cta-hero h2 {
    font-size: 1.4rem;
  }

  .cta-hero .cta-points {
    font-size: 0.92rem;
  }

  .cta-form-row {
    grid-template-columns: 1fr; /* stack on mobile */
  }

  .cta-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .cta-hero .cta-sub {
    font-size: 0.98rem;
  }
}

