/* PennyPig - a perfectly straight-faced fintech landing page.
   Brand: navy + pink, rounded everything, from Mikey's brand sheet. */

:root {
  --navy: #1d2340;
  --navy-soft: #2a3054;
  --pink: #f26d83;
  --pink-deep: #e85d75;
  --pink-soft: #f9cdd3;
  --blush: #fdf1f2;
  --blush-deep: #fbe4e6;
  --text: #3a3f58;
  --text-dim: #767b93;
  --white: #ffffff;
  --display: "Baloo 2", "Comic Sans MS", cursive;
  --body: "Nunito", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(48% 38% at 88% 4%, var(--blush-deep) 0%, transparent 100%),
    radial-gradient(40% 34% at 4% 38%, var(--blush-deep) 0%, transparent 100%),
    radial-gradient(44% 36% at 92% 78%, var(--blush-deep) 0%, transparent 100%),
    var(--blush);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-pig { width: 2.1rem; height: 2.1rem; }

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.wordmark em { font-style: normal; color: var(--pink); }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links a { text-decoration: none; color: var(--text); }
.nav-links a:hover { color: var(--pink-deep); }

/* ---------- buttons & badges ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(232, 93, 117, 0.55);
  transition: background 140ms ease, transform 140ms ease;
}
.btn:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn-small { padding: 0.55rem 1.2rem; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.store-row.center { justify-content: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  transition: background 140ms ease, transform 140ms ease;
}
.store-badge:hover { background: var(--navy-soft); transform: translateY(-1px); }

.store-badge svg { width: 1.6rem; height: 1.6rem; flex: none; }

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.store-badge small {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 7vh, 5rem);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.hero .penny {
  position: relative;
  color: var(--pink);
  white-space: nowrap;
}
.squiggle {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.16em;
  color: var(--pink-soft);
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  max-width: 44ch;
  color: var(--text-dim);
  font-weight: 600;
}

.trust-line {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.stars { color: var(--pink); letter-spacing: 0.1em; }

.hero-art img {
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(29, 35, 64, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: pop 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 80ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 160ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 220ms; }
  .hero-art { animation: pop 700ms 160ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections shared ---------- */

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-title .pink, .section-title em { font-style: normal; color: var(--pink); }

.section-sub {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- features ---------- */

.features {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.feature {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem 1.6rem;
  box-shadow: 0 14px 34px -18px rgba(29, 35, 64, 0.18);
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--blush-deep);
  color: var(--pink-deep);
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 38px; height: 38px; }

.feature h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.feature p { color: var(--text-dim); font-weight: 600; font-size: 0.98rem; }

/* ---------- app section ---------- */

.app-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.app-copy p { color: var(--text-dim); font-weight: 600; margin-top: 1rem; max-width: 46ch; }

.tick-list {
  margin-top: 1.2rem;
  list-style: none;
}
.tick-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.55rem;
  font-weight: 700;
  color: var(--text);
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -0.05em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

/* the phone */

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

.phone {
  width: min(300px, 78vw);
  background: var(--navy);
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 34px 60px -22px rgba(29, 35, 64, 0.45);
  position: relative;
  transform: rotate(-2deg);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 22px;
  background: var(--navy);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: #fff;
  border-radius: 34px;
  padding: 2.2rem 1.15rem 1rem;
  overflow: hidden;
}

.app-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
}
.app-brand em { font-style: normal; color: var(--pink); }

.app-hello { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); margin-top: 0.2rem; }

.app-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 0.9rem;
}

.app-balance {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--navy);
  line-height: 1.1;
}

.app-saved {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8rem;
  background: linear-gradient(120deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-radius: 16px;
  padding: 0.8rem 0.95rem;
  margin-top: 0.8rem;
  color: #fff;
}
.app-saved-label { font-size: 0.68rem; font-weight: 700; opacity: 0.9; }
.app-saved-amount { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }

.app-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
}
.app-bars i {
  width: 7px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 3px;
}
.app-bars i:last-child { background: #fff; }

.app-list {
  list-style: none;
  margin-top: 0.45rem;
}
.app-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--blush);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}
.app-emoji { font-size: 0.95rem; }
.app-list b { margin-left: auto; font-weight: 800; }
.app-list .out { color: var(--navy); }
.app-list .in { color: var(--pink-deep); }

.app-tabs {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0.55rem 0.4rem 0.2rem;
  border-top: 1px solid var(--blush-deep);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dim);
}
.app-tabs .active { color: var(--pink-deep); }

/* ---------- pennypot ---------- */

.pennypot {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vh, 4rem);
}

.pennypot-card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--white);
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 18px 44px -20px rgba(29, 35, 64, 0.2);
}

.pennypot-copy p { color: var(--text-dim); font-weight: 600; margin-top: 1rem; max-width: 52ch; }

.pennypot-example {
  background: var(--blush);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  color: var(--navy) !important;
  display: inline-block;
}
.pennypot-example b { color: var(--pink-deep); }

.pennypot-stat {
  text-align: center;
  background: linear-gradient(150deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-radius: 22px;
  padding: 1.8rem 1.2rem;
  color: #fff;
}
.pot-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.9; }
.pot-amount { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1.1; }
.pot-note { font-weight: 700; font-size: 0.85rem; opacity: 0.9; }

/* ---------- mission ---------- */

.mission {
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.5rem, 5vw, 5rem);
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-content: center;
}
.mission-item svg { width: 46px; height: 46px; flex: none; color: var(--pink); }
.mission-item p { font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.mission-item b { color: var(--pink); font-weight: 800; }

/* ---------- download ---------- */

.download {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

/* ---------- footer ---------- */

.footer {
  background: var(--white);
  border-top: 1px solid var(--blush-deep);
  padding: 2.2rem clamp(1.25rem, 4vw, 2.5rem) 2.4rem;
}

.footer-top {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.footer-links a { text-decoration: none; color: var(--text-dim); }
.footer-links a:hover { color: var(--pink-deep); }

.smallprint {
  max-width: 1140px;
  margin: 1.4rem auto 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}
.smallprint.fiction { margin-top: 0.4rem; }
.smallprint a { color: var(--pink-deep); font-weight: 700; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(140%);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 16px 40px -12px rgba(29, 35, 64, 0.5);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 50;
}
.toast.show { transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* ---------- reveals ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: 2; }
  .feature-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .app-section { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .pennypot-card { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
  .mission-item { justify-content: flex-start; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
