/* Goods2Best landing — brandbook: Midnight Blue 80% / Fresh Green 20%, Manrope */

:root {
  --navy: #111d33;
  --navy-2: #1b2a47;
  --green: #00c27c;
  --green-dark: #007a4d; /* readable green for text on light backgrounds */
  --green-tint: #e2f7ee;
  --bg: #f6f8f7;
  --white: #fff;
  --text: #111d33;
  --muted: #566176;
  --line: #e3e8e6;
  --radius: 24px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgb(17 29 51 / 0.04), 0 12px 32px rgb(17 29 51 / 0.07);
  --shadow-lg: 0 24px 60px rgb(17 29 51 / 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

/* ---------- Typography ---------- */

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.lead strong {
  color: var(--green-dark);
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip--solid {
  background: var(--green);
  color: var(--navy);
}
.chip--onDark {
  background: rgb(0 194 124 / 0.16);
  color: var(--green);
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 8px 22px rgb(0 194 124 / 0.35);
}
.btn--primary:hover {
  background: #14d28c;
  box-shadow: 0 12px 28px rgb(0 194 124 / 0.45);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px rgb(17 29 51 / 0.25);
}
.btn--navy:hover {
  background: var(--navy-2);
}

.btn--ghost {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.28);
}
.btn--ghost:hover {
  background: rgb(255 255 255 / 0.18);
}

.btn--small {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: none;
}

.btn--big {
  padding: 18px 28px;
  font-size: 1.1rem;
  border-radius: 18px;
}

.btn__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn:hover .btn__icon {
  transform: translateY(3px);
}
.btn:hover .btn__icon--static {
  transform: none;
}

.link-arrow {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.link-arrow::after {
  content: " →";
}
.link-arrow:hover {
  color: var(--green-dark);
}
.link-arrow--light {
  color: #fff;
}
.link-arrow--light:hover {
  color: var(--green);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(246 248 247 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgb(17 29 51 / 0.05);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--navy);
  background: rgb(17 29 51 / 0.05);
}
.nav a[aria-current="true"] {
  color: var(--navy);
  background: var(--green-tint);
}

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

.hero {
  padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero__text {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero__text h1 span,
.hero__text h1 em {
  color: var(--green-dark);
  font-style: normal;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.hero__photo {
  width: 100%;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 774 / 1182;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: -36px;
  bottom: 40px;
  max-width: 260px;
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.hero__badge span {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 700;
}

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

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  /* sticky header should not cover the heading after anchor scroll */
  scroll-margin-top: calc(var(--header-h) - 1px);
  /* the rotated phone and its glow may poke out sideways; `clip` keeps the sticky header working */
  overflow-x: clip;
}
.section--white {
  background: var(--white);
}
.section--tint {
  background: var(--bg);
}
.section--navy {
  background: var(--navy);
  color: #fff;
}
.section--green {
  background: var(--green);
  color: var(--navy);
}

.section__head {
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
  margin-top: clamp(44px, 6vw, 72px);
}
.section__cta--left {
  justify-content: flex-start;
  margin-top: 40px;
}

/* ---------- About cards ---------- */

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  padding: 32px 28px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section--white .card {
  background: var(--bg);
  box-shadow: none;
}
.card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.card p {
  color: var(--muted);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--navy);
}
.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: min(250px, 72vw);
  padding: 9px;
  background: var(--navy);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 18px;
  transform: translateX(-50%);
  background: var(--navy);
  border-radius: 999px;
}
.phone img {
  width: 100%;
  border-radius: 32px;
  background: #fff;
}
.phone--large {
  width: min(310px, 78vw);
  padding: 10px;
  border-radius: 46px;
  background: #0a1324;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.1), 0 40px 80px rgb(0 0 0 / 0.5);
}
.phone--large::before {
  background: #0a1324;
}
.phone--large img {
  border-radius: 36px;
}


/* ---------- Courier call block (no app required) ---------- */

.courier {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.courier__main {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(28px, 4vw, 48px);
}
.courier__label {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(0 194 124 / 0.16);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.courier__phone {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.courier__phone:hover {
  color: #3be3a6;
}
.courier__main p {
  max-width: 520px;
  color: rgb(255 255 255 / 0.76);
}
.courier__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.btn__icon--static {
  width: 20px;
  height: 20px;
}

.courier__app {
  display: grid;
  align-content: center;
  gap: 12px;
  justify-items: start;
  padding: clamp(28px, 4vw, 48px);
  background: var(--navy-2);
  border-left: 1px solid rgb(255 255 255 / 0.08);
}
.courier__app h3 {
  font-size: 1.25rem;
}
.courier__app p {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.97rem;
}
.courier__app .link-arrow {
  margin-top: 6px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.step {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  text-align: center;
}
.step .phone {
  margin-bottom: 18px;
}
.step .phone img {
  aspect-ratio: 640 / 1391; /* same height for all three screens so the numbers line up */
  object-fit: cover;
  object-position: top;
}
.step h3 {
  max-width: 300px;
}
.step p {
  max-width: 300px;
  color: var(--muted);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
}

/* ---------- Accepted items ---------- */

.accept {
  margin-bottom: clamp(48px, 6vw, 80px);
}
.accept__title {
  margin-bottom: 32px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat {
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-bottom: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(17 29 51 / 0.05), 0 20px 44px rgb(17 29 51 / 0.12);
}
.cat img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 10px;
}
.cat h4,
.cat p {
  padding-inline: 26px;
}
.cat h4 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.cat p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Buy ---------- */

.buy {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.buy__text {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.section--navy .lead {
  color: rgb(255 255 255 / 0.74);
}

.points {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}
.points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.points h3 {
  margin-bottom: 4px;
}
.points p {
  color: rgb(255 255 255 / 0.7);
}
.points__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgb(0 194 124 / 0.16);
}
.points__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.buy__visual {
  position: relative;
  display: grid;
  justify-items: center;
}
.buy__visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% 4%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgb(0 194 124 / 0.4), transparent 72%);
  filter: blur(12px);
}
.buy__visual .phone {
  position: relative;
  transform: rotate(3deg);
}

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

.app {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.app__text {
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: 640px;
}
.section--green .lead {
  color: rgb(17 29 51 / 0.82);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.stores a {
  display: block;
  transition: transform 0.15s;
}
.stores a:hover {
  transform: translateY(-3px);
}
.stores img {
  height: 52px;
  width: auto;
}

.app__qr {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}
.app__qr img {
  width: 200px;
  height: 200px;
}

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

.footer {
  padding: 48px 0;
  background: var(--navy);
  color: rgb(255 255 255 / 0.72);
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 40px;
}
.footer__inner img {
  height: 43px;
  width: auto;
}
.footer__tag {
  font-weight: 600;
}
.footer__nav {
  display: flex;
  gap: 24px;
}
.footer__nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.footer__nav a:hover {
  color: var(--green);
}
.footer__copy {
  grid-column: 1 / -1;
  justify-self: stretch;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.9rem;
}

/* ---------- Scroll reveal (only when JS is available) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .steps .step:nth-child(2),
.js .cats .cat:nth-child(3n + 2),
.js .cards3 .card:nth-child(2) {
  transition-delay: 0.08s;
}
.js .steps .step:nth-child(3),
.js .cats .cat:nth-child(3n),
.js .cards3 .card:nth-child(3) {
  transition-delay: 0.16s;
}

/* Landing flash on the section the visitor just jumped to */
.section.is-target .section__head h2,
.section.is-target .buy__text h2 {
  animation: target-pulse 1.1s ease-out;
}
@keyframes target-pulse {
  0% {
    text-shadow: 0 0 0 rgb(0 194 124 / 0);
  }
  30% {
    text-shadow: 0 0 28px rgb(0 194 124 / 0.55);
  }
  100% {
    text-shadow: 0 0 0 rgb(0 194 124 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .cat,
  .stores a,
  .btn__icon {
    transition: none;
  }
  .section.is-target h2 {
    animation: none;
  }
}

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

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .header__inner {
    justify-content: space-between;
  }

  .hero__inner,
  .buy,
  .app {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    width: min(100%, 360px);
    justify-self: start;
  }
  .hero__badge {
    left: -12px;
    bottom: 24px;
  }
  .buy__visual {
    order: -1;
  }
  .app__qr {
    justify-self: start;
  }

  .cards3,
  .cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards3 .card:last-child {
    grid-column: 1 / -1; /* no orphan card on tablets */
  }
  .courier {
    grid-template-columns: 1fr;
  }
  .courier__app {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 0.08);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .container {
    width: min(1160px, 100% - 32px);
  }
  .cards3,
  .cats {
    grid-template-columns: 1fr;
  }
  .cta {
    width: 100%;
  }
  .cta .btn,
  .courier__actions .btn {
    width: 100%;
  }
  .courier {
    border-radius: 24px;
  }
  .section__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .section__cta--left {
    align-items: stretch;
  }
  .hero__visual {
    width: 100%;
  }
  .hero__photo {
    aspect-ratio: 1 / 1;
    object-position: 50% 18%;
  }
  .hero__badge {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: -44px 14px 0;
  }
  .app__qr {
    display: none; /* on a phone the store badges are the way to install */
  }
  .btn--small {
    padding: 9px 14px;
    font-size: 0.88rem;
  }
}
