:root {
  --butter: #dff48f;
  --butter-soft: #f3fbd9;
  --green: #bfe85f;
  --green-deep: #557a1f;
  --ink: #111111;
  --muted: #4b5563;
  --line: rgba(17, 17, 17, 0.12);
  --gold: #ffd766;
  --success: #e8f8c7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

button,
summary,
a,
input {
  outline-color: var(--green-deep);
  outline-offset: 4px;
}

.hero-scene {
  min-height: 92svh;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, var(--butter-soft) 0%, #ffffff 78%);
}

.hero-title {
  max-width: 760px;
  color: var(--ink);
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-subhead {
  margin-top: 1rem;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.38rem);
  font-weight: 900;
  line-height: 1.12;
}

.hero-copy {
  align-self: end;
}

.hero-actions {
  align-self: start;
}

.hero-cta-row {
  margin-top: 2rem;
}

.hero-rule-link {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-rule-link a {
  color: #0645ad;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: center;
  min-height: 30rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 2% 0;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--green), var(--butter-soft));
}

.hero-visual img {
  position: relative;
  width: min(78vw, 350px);
  border: 10px solid #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.18);
}

.hero-reward {
  position: absolute;
  right: min(4vw, 1.5rem);
  bottom: 2rem;
  max-width: 15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 1rem;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.12);
}

.hero-reward small,
.reward-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-reward b,
.reward-stat b {
  display: block;
  margin-top: 0.28rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

@media (min-width: 1024px) {
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.btn-primary,
.btn-secondary {
  min-height: 3.15rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
  padding: 0.95rem 1.45rem;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary {
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--green-deep), 0 18px 32px rgba(85, 122, 31, 0.18);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(2px);
}

.btn-small {
  min-height: 2.65rem;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-heading {
  text-align: center;
}

.section-heading p,
.eyebrow {
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
  text-wrap: balance;
}

.info-card,
.tower-card,
.join-form,
.app-reward-panel,
.faq-item,
.reward-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.07);
}

.info-card {
  min-height: 13rem;
  padding: 1.3rem;
}

.info-card span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-weight: 900;
}

.info-card h3,
.tower-card h3 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.info-card p,
.tower-card p,
.faq-item p,
.app-reward-panel li,
.join-form p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.butter-band,
.join-band,
.final-cta {
  background: linear-gradient(180deg, var(--butter-soft), #ffffff);
}

.phone-preview {
  margin-inline: auto;
  max-width: 330px;
  border: 10px solid #ffffff;
  border-radius: 28px;
  background: white;
  box-shadow: 0 24px 52px rgba(17, 17, 17, 0.16);
  overflow: hidden;
}

.phone-preview img {
  display: block;
  height: auto;
  width: 100%;
}

.phone-small {
  max-width: 280px;
}

.app-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
}

.screen-card {
  position: relative;
  min-height: 360px;
  margin: 0;
}

.screen-card img {
  height: 100%;
  object-fit: cover;
}

.screen-card:nth-child(2) {
  transform: translateY(1.5rem);
}

.screen-card figcaption {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.45rem 0.7rem;
  text-align: center;
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.12);
}

.screen-carousel-controls {
  display: none;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.carousel-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.25);
  transition: width 0.18s ease, background-color 0.18s ease;
}

.carousel-dot.is-active {
  width: 1.6rem;
  background: var(--green-deep);
}

.carousel-arrow {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}

.step-item {
  align-items: center;
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
}

.step-item b {
  display: grid;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
}

.tower-card {
  min-height: 15rem;
  padding: 1.25rem;
}

.tower-card span {
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 900;
}

.tower-date {
  margin-top: 0.75rem;
  color: var(--ink);
  font-weight: 900;
}

.join-form,
.app-reward-panel {
  align-self: start;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.join-form h3,
.app-reward-panel h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.08;
}

.join-form label {
  display: block;
  margin-top: 1rem;
}

.join-form span {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.join-form input {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  padding: 0.95rem 1rem;
}

.join-form input:focus {
  border-color: var(--green-deep);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-row-2col label {
  margin-top: 0;
}

.join-form select {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  padding: 0.95rem 2.4rem 0.95rem 1rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  appearance: none;
}

.join-form select:focus {
  border-color: var(--green-deep);
}

.form-error {
  min-height: 1.5rem;
  color: #c42525;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-success {
  margin-top: 1rem;
  border-radius: 8px;
  background: var(--success);
  color: var(--ink);
  font-weight: 900;
  padding: 0.9rem;
}

.app-reward-panel {
  background: linear-gradient(180deg, #ffffff, var(--butter-soft));
}

.app-reward-panel .reward-stat {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #ffffff;
}

.app-reward-panel ul {
  color: var(--muted);
  font-weight: 700;
  list-style: disc;
  margin: 1.4rem 0;
  padding-left: 1.2rem;
}

.app-reward-panel li + li {
  margin-top: 0.65rem;
}

.reward-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.faq-item {
  padding: 1rem 1.2rem;
}

.faq-item summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.faq-item p {
  margin-top: 0.75rem;
}

.final-cta h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.final-cta p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-scene {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    z-index: auto;
    min-height: 18rem;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    order: 2;
  }

  .hero-visual::before {
    inset: 12% 8% 0;
    border-radius: 22px;
  }

  .hero-visual img {
    width: min(62vw, 240px);
    border-width: 6px;
    border-radius: 20px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-actions {
    order: 3;
    margin-top: -200px;
    position: relative;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.75);
  }

  .hero-cta-row {
    margin-top: 0;
  }

  .hero-reward {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
  }

  .section-heading h2 {
    text-wrap: pretty;
  }

  .phone-preview {
    max-width: min(310px, 86vw);
  }

  .app-screens {
    display: flex;
    gap: 1rem;
    margin-inline: -1.25rem;
    overflow-x: auto;
    padding: 0.65rem 1.25rem 1.2rem;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .app-screens::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    flex: 0 0 min(82vw, 320px);
    min-height: 420px;
    scroll-snap-align: center;
  }

  .screen-card:nth-child(2) {
    transform: none;
  }

  .screen-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 0.35rem;
  }
}
