/* ==========================================================================
   Recycle Pay — components.css
   Reusable building blocks: buttons, cards, icon tiles, steps, chips,
   tags, notes, bands, ticker, social links and form controls.
   ========================================================================== */

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.45em;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.soft {
  background: var(--tint);
  color: var(--brand-dark);
}

.btn.soft:hover {
  background: #d5e8cc;
}

.btn.line {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #cfd6dd;
}

.btn.line:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn.store {
  padding: 0.7em 1.2em;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn.store:hover {
  background: #f6f8f5;
}

.btn.store svg {
  font-size: 1.4rem;
}

.btn-sm {
  padding: 0.6em 1.1em;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.8rem;
}

.ctas-tight {
  margin: 1rem 0 0;
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(31, 45, 61, 0.04);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  border-color: #cfdcc9;
  box-shadow: 0 10px 24px -18px rgba(31, 45, 61, 0.35);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.card-roomy {
  padding: 2rem;
}

/* ---------- Icon tiles (one shape, one colour) ---------- */

.ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand);
  font-size: 1.15rem;
}

/* Pastel tones used by the sustainability loop and app mockup */
.t-mint,
.tone-mint {
  background: var(--mint);
  color: var(--green);
}
.t-peach,
.tone-peach {
  background: var(--peach);
  color: #b8562a;
}
.t-lilac,
.tone-lilac {
  background: var(--lilac);
  color: #6a4fb8;
}
.t-sky {
  background: var(--sky);
  color: #2d6fb0;
}
.t-butter,
.tone-butter {
  background: var(--butter);
  color: #8a6a00;
}
.t-rose {
  background: var(--rose);
  color: #b3436b;
}

/* Icon tiles keep the brand look even when a tone class is present */
.ic[class*="t-"] {
  background: var(--tint);
  color: var(--brand);
}

/* Recycle Pay mark in the phone mockup header (assets/images/brand/) */
.brand-icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.28em;
}

/* ---------- Brand logos (Recycle Pay mark, Bintix tile) ---------- */

/* Large logo at the top of a programme card, in place of an icon tile */
.brand-tile {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* The Bintix logo is a square tile, so round its corners like the icon tiles */
.brand-tile.is-square,
.btn-logo.is-square {
  border-radius: 12px;
}

/* Small logo inside a button, sized to the text */
.btn-logo {
  width: 1.45em;
  height: 1.45em;
  flex: none;
  object-fit: contain;
}

.btn-logo.is-square {
  border-radius: 6px;
}

/* On a green button the mark's green arrows would disappear: give it a white disc */
.btn-logo.on-dark {
  padding: 2px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Numbered steps ---------- */

.steps {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps .n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid #cfe3c6;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.steps h3 {
  margin: 0.1rem 0 0.15rem;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Chips and tags ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.45em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.chip svg {
  color: var(--brand);
}

.tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.hi {
  background: var(--sky);
  color: #2d6fb0;
}

.tag.lo {
  background: var(--peach);
  color: #b8562a;
}

/* ---------- Ticks and notes ---------- */

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 500;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticks svg {
  color: var(--brand);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.2rem;
  font-size: 0.92rem;
}

.note svg {
  margin-top: 0.25em;
  color: var(--green);
}

/* ---------- Call-to-action band ---------- */

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid #d9e8d2;
  border-radius: 32px;
  background: var(--tint);
}

.band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
}

.band p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

/* ---------- Scrolling ticker ---------- */

.ticker {
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 34s linear infinite;
}

.tk {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 0.8rem;
  padding: 0.6em 1.15em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.tk svg {
  color: var(--brand);
}

/* ---------- Social links ---------- */

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ---------- Form controls ---------- */

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}
