/* Spendwise site — chrome, marketing sections, and the screenshot gallery. */

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(180%) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--brand-tint);
  color: var(--brand);
}

.site-nav a[aria-current='page'] {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(900px 420px at 78% -10%, var(--brand-tint), transparent 70%),
    linear-gradient(180deg, var(--bg-softer), var(--bg));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-pill);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero__lede {
  max-width: 34rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero__art {
  display: flex;
  justify-content: center;
}

/* ---------- Phone frame (hero) ---------- */

.phone {
  width: min(300px, 74vw);
  padding: 10px;
  background: linear-gradient(160deg, #1e293b, #0b1220);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}

.phone img {
  width: 100%;
  border-radius: 31px;
}

/* ---------- Trust strip ---------- */

.trust {
  border-block: 1px solid var(--line-soft);
  background: var(--bg);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  padding: 1.75rem 0;
}

.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.trust__item svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--brand);
}

.trust__item strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.trust__item span {
  font-size: 0.87rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  background: var(--brand-tint);
  border-radius: 12px;
  color: var(--brand);
}

.feature h3 {
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.94rem;
  color: var(--body);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  /* 2 → 3 → 5 columns. Five per row lands the ten screenshots on exactly two
     rows, which is why the count is explicit rather than auto-fit. */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery li {
  margin: 0;
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--body);
}

.shot figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

/* ---------- Privacy callout ---------- */

.callout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.callout__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.callout__list li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.94rem;
}

.callout__list svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--success);
}

/* ---------- Closing CTA ---------- */

.cta {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand));
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 34rem;
  margin: 0.8rem auto 0;
  color: rgb(255 255 255 / 88%);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.cta .btn--ghost {
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 40%);
  color: #fff;
}

.cta .btn--ghost:hover {
  background: rgb(255 255 255 / 22%);
  border-color: #fff;
  color: #fff;
}

/* The band is already brand blue, so an inverted button is the readable one. */
.cta .btn--primary {
  background: #fff;
  color: var(--brand);
}

.cta .btn--primary:hover {
  background: var(--brand-tint);
  color: var(--brand);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--body);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.site-footer__brand p {
  max-width: 22rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__art {
    justify-content: flex-end;
  }

  .callout {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.6rem;
  }

  .site-nav {
    width: 100%;
  }
}
