/* Year 3 challenge landing page (challenge/index.html) — phone first, then tablet and
   desktop. Builds on style.css (form fields, cards, buttons). */
body.landing { padding: 0; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero-band { background: linear-gradient(180deg, #e3f3f7 0%, #f0f4f8 100%); padding: 22px 0 30px; }
.hero { display: grid; gap: 26px; align-items: center; }
.hero .logo { text-align: left; margin: 16px 0 12px; }
.hero .logo img { width: 64px; height: auto; }
.pill { display: inline-block; background: #00819f; color: white; font-weight: 700; font-size: 0.82rem; padding: 5px 12px; border-radius: 16px; margin-bottom: 12px; }
.hero h1 { font-size: 1.85rem; line-height: 1.15; color: #1a1a2e; margin-bottom: 12px; }
.hero h1 .accent { color: #00819f; }
.hero .sub { font-size: 1.02rem; color: #2d3748; margin-bottom: 18px; }
.btn.cta { display: inline-block; width: auto; padding: 15px 26px; font-size: 1.08rem; text-decoration: none; box-shadow: 0 3px 0 #005f75; }
.deadline { margin-top: 10px; font-size: 0.88rem; font-weight: 700; color: #c05621; }
.hero .trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding: 0; font-size: 0.86rem; color: #2f7a4a; font-weight: 600; }

.hero-visual { position: relative; max-width: 420px; margin: 0 auto; padding-right: 70px; }
.device { display: block; border: 6px solid #1a1a2e; border-radius: 20px; background: white; box-shadow: 0 10px 28px rgba(0,0,0,0.18); height: auto; }
.device.tablet { width: 100%; }
.device.phone { position: absolute; width: 46%; right: 0; bottom: -18px; border-width: 5px; border-radius: 16px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { margin: 34px 0; }
.section-title { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 16px; text-align: center; }
.steps-grid { display: grid; gap: 18px; }
.step { background: white; border-radius: 14px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex; flex-direction: column; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: #00819f; color: white; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step h3 { font-size: 1.08rem; color: #1a1a2e; margin-bottom: 6px; }
.step p { font-size: 0.93rem; color: #4a5568; margin-bottom: 14px; }
.shot { width: 100%; height: auto; margin-top: auto; border: 3px solid #1a1a2e; border-radius: 12px; max-height: 360px; object-fit: cover; object-position: top; }

.two-up { display: grid; gap: 18px; align-items: start; }
.two-up .card { margin-bottom: 0; }
.foot { text-align: center; font-size: 0.82rem; color: #718096; padding: 10px 0 90px; }

/* ── Phone sign-up bar ────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  background: #00819f; color: white; text-align: center; font-weight: 700; text-decoration: none;
  padding: 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s, opacity 0.2s;
}
.sticky-cta.away { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.3rem; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .shot { max-height: 300px; }
}

/* ── Desktop ──────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
  .hero-band { padding: 34px 0 50px; }
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 46px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-visual { margin: 0; }
  .two-up { grid-template-columns: 1fr 1fr; }
  .two-up #signup { position: sticky; top: 16px; }
  .sticky-cta { display: none; }
  .foot { padding-bottom: 30px; }
}
