/* TrashMart — one stylesheet for the whole site.
   Colours are taken from the app icon so the site and the app match. */

:root {
  --navy: #131f38;
  --navy-soft: #1c2b4a;
  --cream: #f5e6c8;
  --purple: #8b3fe8;
  --purple-dark: #7433c9;
  --ink: #1a1a1f;
  --body: #43434f;
  --page: #fffdf8;
  --line: #e6e0d2;
  --max: 1080px;
  --radius: 14px;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Keeps the footer at the bottom of the window on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--purple-dark);
}

a:hover {
  color: var(--purple);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

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

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 9px;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(245, 230, 200, 0.12);
  color: var(--cream);
}

.nav a[aria-current="page"] {
  background: rgba(245, 230, 200, 0.16);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--purple-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 230, 200, 0.45);
}

.btn-ghost:hover {
  background: rgba(245, 230, 200, 0.12);
  color: var(--cream);
}

.btn[aria-disabled="true"] {
  cursor: default;
}

.btn-note {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(245, 230, 200, 0.72);
}

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

.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 62px 0 68px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.95rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero .tagline {
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.83rem;
  margin: 0 0 14px;
}

.hero p.lede {
  font-size: 1.05rem;
  color: rgba(245, 230, 200, 0.85);
  margin: 0 0 28px;
  max-width: 36em;
}

.hero-art {
  display: flex;
  justify-content: center;
  /* Without this the flex container stretches the image out of shape. */
  align-items: center;
}

.hero-art img {
  width: min(240px, 100%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

/* The app icon is a square tile on its own background, so it is shown as one. */
.app-icon {
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(245, 230, 200, 0.16);
}

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

.section {
  padding: 68px 0;
}

.section.alt {
  background: #fbf6ea;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section .section-lede {
  max-width: 60ch;
  margin: 0 0 34px;
}

.eyebrow {
  color: var(--purple-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin: 0 0 10px;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--ink);
}

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

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(139, 63, 232, 0.12);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card .icon svg {
  width: 21px;
  height: 21px;
}

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

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.steps strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- Call to action strip ---------- */

.cta {
  background: var(--navy);
  color: var(--cream);
  padding: 62px 0;
  text-align: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 12px;
}

.cta p {
  max-width: 50ch;
  margin: 0 auto 26px;
  color: rgba(245, 230, 200, 0.85);
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--navy);
  color: var(--cream);
  padding: 52px 0;
}

.page-head h1 {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: rgba(245, 230, 200, 0.82);
  max-width: 60ch;
}

/* ---------- Prose ---------- */

.prose {
  max-width: 74ch;
  padding: 52px 0 72px;
}

.prose h2 {
  color: var(--ink);
  font-size: 1.3rem;
  margin: 42px 0 12px;
  letter-spacing: -0.01em;
}

.prose h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 28px 0 8px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

/* The legal documents number their own clauses, so the list markers would
   double up. */
.legal ol {
  list-style: none;
  padding-left: 0;
  counter-reset: clause;
}

.legal ol li {
  counter-increment: clause;
  padding-left: 30px;
  position: relative;
}

.legal ol li::before {
  content: counter(clause) ".";
  position: absolute;
  left: 0;
  color: var(--purple-dark);
  font-weight: 600;
}

/* Section headings in the legal documents are set in capitals, as they are in
   the app. Smaller and letter-spaced so they read as headings rather than
   shouting. */
.legal h2 {
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.prose li {
  margin-bottom: 7px;
}

.prose blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--purple);
  background: #fbf6ea;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 1.06rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

/* Status box above the legal documents. */
.notice {
  background: #fbf6ea;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 34px;
  font-size: 0.96rem;
}

.notice strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* Collapsible contents list on the legal pages. */
.contents {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 38px;
  background: #fff;
}

.contents summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.contents ol {
  margin: 14px 0 4px;
  padding-left: 24px;
  columns: 2;
  column-gap: 30px;
  font-size: 0.92rem;
}

/* The entries already carry their own section numbers, so the clause counter
   the legal pages add to lists has to be turned off here. */
.legal .contents ol {
  list-style: none;
  padding-left: 0;
}

.legal .contents ol li {
  margin-bottom: 5px;
  break-inside: avoid;
  padding-left: 0;
}

.legal .contents ol li::before {
  content: none;
}

.contents a {
  text-decoration: none;
}

.contents a:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .contents ol {
    columns: 1;
  }
}

/* The header is sticky, so anchors need room to clear it. */
.legal h2 {
  scroll-margin-top: 92px;
}

/* Contact details block. */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin: 0 0 26px;
}

.contact-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-dark);
  font-weight: 700;
  margin: 0 0 6px;
}

.contact-card .email {
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-all;
}

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

.site-footer {
  background: var(--navy);
  color: rgba(245, 230, 200, 0.75);
  padding: 46px 0 32px;
  font-size: 0.94rem;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.site-footer h4 {
  color: var(--cream);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

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

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(245, 230, 200, 0.78);
  text-decoration: none;
}

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

.site-footer .about-blurb {
  max-width: 34ch;
  margin: 0;
}

.site-footer .brand {
  margin-bottom: 12px;
}

.site-footer .bottom {
  border-top: 1px solid rgba(245, 230, 200, 0.16);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 34px;
  }

  .hero p.lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: min(210px, 60%);
  }

  .site-footer .cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }

  .nav {
    justify-content: center;
  }

  .nav a {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 46px 0 56px;
  }

  .section {
    padding: 48px 0;
  }
}
