/* The home page (index.html): additions on top of styles.css. */

:root { --play: #34C46A; --lo: #FFD640; --hi: #FF9696; }

/* nav: a real button for the app */
nav.site-nav { align-items: center; }
nav.site-nav a.nav-cta {
  color: #000;
  background: var(--play);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 650;
}
nav.site-nav a.nav-cta:hover { color: #000; text-decoration: none; filter: brightness(1.08); }
@media (max-width: 560px) {
  nav.site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */

.hero.hero-v2 { text-align: left; padding: 56px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-v2 h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  margin: 0 0 16px;
}
.hero-v2 h1 em { font-style: normal; color: var(--lo); }
.hero-stat {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  margin: 0 0 12px;
  line-height: 1.45;
}
.hero-stat strong { font-size: 1.25em; }
.hero-stat .lo { color: var(--lo); }
.hero-stat .hi { color: var(--hi); }
.hero-v2 .sub { margin: 0; max-width: 520px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.play-badge { display: inline-block; line-height: 0; }
.play-badge img {
  height: 84px;           /* the badge's own padding makes ~64px of button */
  width: auto;
  margin: -10px -12px;    /* line its visible edge up with the text */
  transition: transform 0.15s ease;
}
.play-badge:hover img { transform: scale(1.04); }
.cta-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.cta-facts li::before { content: "✓ "; color: var(--play); font-weight: 700; }

.hero-phone { display: flex; justify-content: center; }

/* A phone frame around a screenshot, the status bar cropped off. */
.phone {
  width: 100%;
  max-width: 270px;
  border: 9px solid #1c1c1e;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  max-width: none;
}
.hero-phone .phone { transform: rotate(2deg); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone .phone { max-width: 220px; transform: none; }
  .hero-v2 { text-align: center; }
  .hero-v2 .sub { margin: 0 auto; }
  .cta-row { justify-content: center; }
}

/* ---------- the cart comparison ---------- */

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 14px;
}
.bars { list-style: none; margin: 0; padding: 0; }
.bars li {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr 70px;
  gap: 14px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bars li:last-child { border-bottom: 0; }
.bar-name { display: flex; flex-direction: column; line-height: 1.25; }
.bar-name strong { font-size: 15px; }
.bar-name small { color: var(--text-faint); font-size: 12.5px; }
.bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar-total { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bars li.cheapest .bar-fill { background: var(--lo); }
.bars li.cheapest .bar-total { color: var(--lo); }
.bars li.cheapest .bar-name strong::after {
  content: "Cheapest";
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lo);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}
.bars li:last-child .bar-total { color: var(--hi); }
.gap-line { margin: 12px 0 0; color: var(--text-dim); font-size: 15px; }

@media (max-width: 560px) {
  .bars li { grid-template-columns: 1fr 64px; gap: 4px 10px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

.cart-details {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}
.cart-details summary { cursor: pointer; color: var(--accent); }
.cart-details strong { color: var(--text); }

.cta-band {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(20, 40, 159, 0.55), rgba(95, 166, 224, 0.18));
  border: 1px solid rgba(95, 166, 224, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-band p { margin: 0; max-width: 460px; }

/* A big, unmissable button in the Play green. */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--play);
  color: #000;
  font-weight: 750;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(52, 196, 106, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-play:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.07); }
.btn-play svg { width: 20px; height: 20px; fill: currentColor; }
.btn-play.small { padding: 9px 18px; font-size: 15px; box-shadow: none; }

/* ---------- how it works ---------- */

.steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.steps .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lo);
  color: #000;
  font-weight: 800;
}
.steps h3 { margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.how-more { color: var(--text-dim); margin: 22px 0 0; max-width: 720px; }

/* ---------- screenshots ---------- */

.shots-v2 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.shots-v2 .phone { max-width: 220px; margin: 0 auto 14px; }
.shots-v2 figcaption { color: var(--text-dim); font-size: 14px; line-height: 1.4; }
.shots-v2 figcaption strong { display: block; color: var(--text); font-size: 15px; }

/* ---------- last call ---------- */

.final-cta {
  text-align: center;
  background: linear-gradient(200deg, var(--accent-deep) 0%, var(--bg) 70%);
}
.final-cta .app-icon { width: 72px; height: 72px; border-radius: 18px; }
.final-cta h2 { margin: 14px 0 6px; }
.final-cta p { color: var(--text-dim); margin: 0 0 18px; }

/* ---------- the phone bar ---------- */

.sticky-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta img { width: 34px; height: 34px; border-radius: 8px; }
.sticky-cta span { flex: 1; font-size: 15px; color: var(--text-dim); }
.sticky-cta span strong { color: var(--text); }
@media (min-width: 761px) { .sticky-cta { display: none !important; } }


@media (max-width: 560px) {
  .cta-band .btn-play { width: 100%; justify-content: center; font-size: 16px; padding: 14px 18px; }
}

/* ---------- the shelf tag ---------- */

.snap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: center;
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.snap img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transform: rotate(-2deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.snap h3 { margin: 0 0 8px; }
.snap p { margin: 0; color: var(--text-dim); }
@media (max-width: 560px) {
  .snap { grid-template-columns: 1fr; }
  .snap img { max-width: 220px; margin: 0 auto; }
}
.shots-v2 .shot { margin: 0; }

/* On a phone: the screenshots side by side, swiped, not a long column. */
@media (max-width: 560px) {
  .shots-v2 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -20px;
    padding: 4px 20px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .shots-v2 .shot { flex: 0 0 68%; scroll-snap-align: center; }
}
