/* =============================================================================
   gearrecycling.io — marketing page

   Runs on the product's design system (DESIGN.md at the repo root, shipped in
   src/app/globals.css), not on reco's marketing brand. Same tokens, same
   surfaces, same fixed rem type ramp. The only adaptation is that this page
   scrolls: the app locks one plate to the viewport, here the plate grows with
   the document and the recessed field runs down the middle of it.
   ========================================================================== */

:root {
  /* --- surfaces: sunken ground, floating plate, cards on a muted field ----- */
  --color-sunken: #eeeeea;
  --color-surface: #ffffff;
  --color-muted: #f6f6f3;
  --color-inset: #efefea;
  --color-inverse: #16191c;

  /* --- ink ---------------------------------------------------------------- */
  --color-ink: #16191c;
  --color-ink-secondary: #5a6067;
  --color-ink-inverse: #f6f7f6;

  /* --- lines -------------------------------------------------------------- */
  --color-line: #e5e5df;
  --color-line-strong: #d2d2ca;

  /* --- accent: pine, the default scheme. Nothing here writes it twice. ----- */
  --color-accent: #1f6b45;
  --color-accent-ink: #ffffff;
  --accent-wash: color-mix(in oklab, var(--color-accent) 8%, white);
  --accent-soft: color-mix(in oklab, var(--color-accent) 14%, white);
  --accent-line: color-mix(in oklab, var(--color-accent) 26%, white);
  --accent-hover: color-mix(in oklab, var(--color-accent) 88%, black);

  /* --- radii: the soft plate language ------------------------------------- */
  --radius-focus: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-plate: 28px;
  --radius-pill: 999px;

  /* --- elevation: offset + soft blur. No zero-offset halos. --------------- */
  --shadow-card: 0 1px 2px rgb(22 25 28 / 0.05);
  --shadow-plate:
    0 1px 2px rgb(22 25 28 / 0.04), 0 18px 40px -20px rgb(22 25 28 / 0.16);

  /* --- type: one family, fixed rem scale, ~1.15 ratio --------------------- */
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* --- motion: state feedback only ---------------------------------------- */
  --ease-out-quint: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--color-line);
}

html {
  background-color: var(--color-sunken);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 16px;
  background-color: var(--color-sunken);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.375rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection {
  background-color: var(--accent-soft);
  color: #164e33;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-focus);
}

img,
svg {
  max-width: 100%;
}

/* ── Type ramp ─────────────────────────────────────────────────────────────
   The fixed rem steps from DESIGN.md. No clamp(), no viewport-scaled type. */

h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 2.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 2.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

p {
  margin: 0;
  max-width: 32rem;
}

.deck {
  font-size: 1.125rem;
  line-height: 1.625rem;
  color: var(--color-ink-secondary);
  max-width: 34rem;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.625rem;
  color: var(--color-ink-secondary);
  max-width: 32rem;
}

/* ── Skip link ─────────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2;
  background-color: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  text-decoration: none;
  font-weight: 500;
}

.skip:focus {
  left: 24px;
  top: 24px;
}

/* ── The plate ─────────────────────────────────────────────────────────────
   One white plate on the sunken ground. Everything lives inside it. */

.plate {
  max-width: 1120px;
  margin: 0 auto;
  background-color: var(--color-surface);
  border-radius: var(--radius-plate);
  box-shadow: var(--shadow-plate);
  overflow: hidden;
}

/* ── Masthead ──────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-line);
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  color: var(--color-ink);
}

.masthead__brand img {
  display: block;
  height: 26px;
  width: auto;
}

.masthead__product {
  display: none;
  padding-left: 12px;
  border-left: 1px solid var(--color-line);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--color-ink-secondary);
}

.masthead__nav {
  display: none;
  gap: 4px;
}

.masthead__nav a {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--color-ink-secondary);
  text-decoration: none;
  transition: background-color 150ms var(--ease-out-quint),
    color 150ms var(--ease-out-quint);
}

.masthead__nav a:hover {
  background-color: var(--color-muted);
  color: var(--color-ink);
}

/* ── Buttons ───────────────────────────────────────────────────────────────
   Fully round, 40px tall, medium weight. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms var(--ease-out-quint),
    border-color 150ms var(--ease-out-quint),
    color 150ms var(--ease-out-quint);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-card);
}

.btn--primary:hover {
  background-color: var(--accent-hover);
}

.btn--primary:active {
  background-color: var(--accent-hover);
  box-shadow: none;
}

.btn--secondary {
  background-color: var(--color-surface);
  border-color: var(--color-line-strong);
  color: var(--color-ink);
  box-shadow: var(--shadow-card);
}

.btn--secondary:hover {
  background-color: var(--color-muted);
}

.btn--secondary:active {
  background-color: var(--color-inset);
  box-shadow: none;
}

.btn--onInverse {
  background-color: var(--color-surface);
  color: var(--color-ink);
}

.btn--onInverse:hover {
  background-color: var(--color-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: none;
}

/* ── Hero ──────────────────────────────────────────────────────────────────
   On the plate itself, above the recessed field, the way the app's topbar and
   page heading sit on white before the field begins. */

.hero {
  padding: 48px 20px 56px;
}

.hero h1 {
  max-width: 38ch;
  text-wrap: balance;
}

.hero .deck {
  margin-top: 20px;
}

.hero .actions {
  margin-top: 32px;
}

/* ── The recessed field ────────────────────────────────────────────────────
   Muted ground, hairline top and bottom, white cards inside it. */

.field {
  padding: 40px 20px 48px;
  background-color: var(--color-muted);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section + .section {
  margin-top: 56px;
}

.section__head h2 {
  max-width: 24ch;
}

.section__head .lede {
  margin-top: 8px;
}

.section > .section__head + * {
  margin-top: 24px;
}

/* Two-column sections: the heading holds the left rail, prose runs beside it.
   Below the breakpoint they simply stack. */

.split .prose {
  margin-top: 20px;
}

.prose p + p {
  margin-top: 16px;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */

/* Inside the plate the stack is sunken ground -> plate -> recessed field ->
   white card, and tone plus a hairline already carry three of those steps. The
   plate owns the one long shadow in the system, so a card resting on the field
   does not need a second one under it. */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ── The chain ─────────────────────────────────────────────────────────────
   A custody rail: hairline spine, accent node per step. */

.chain {
  list-style: none;
  margin: 0;
  padding: 24px;
}

.chain li {
  position: relative;
  padding-left: 28px;
  padding-bottom: 24px;
}

.chain li:last-child {
  padding-bottom: 0;
}

.chain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
}

.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  bottom: 3px;
  width: 1px;
  background-color: var(--color-line-strong);
}

.chain h3 + p {
  margin-top: 4px;
  color: var(--color-ink-secondary);
}

/* ── The inverse card ──────────────────────────────────────────────────────
   One per page. Tone carries it, so it drops its border and its shadow, and
   the contour material sits below the copy block rather than behind it. */

.card--inverse {
  background-color: var(--color-inverse);
  border-color: transparent;
  color: var(--color-ink-inverse);
  padding: 0;
  overflow: hidden;
}

.card--inverse .card__body {
  padding: 32px 24px;
}

.card--inverse h2 + p {
  margin-top: 16px;
  color: var(--color-ink-inverse);
}

.contour {
  display: block;
  width: 100%;
  height: 120px;
}

.ticks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 32rem;
}

.ticks li {
  position: relative;
  padding-left: 20px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background-color: var(--color-accent-ink);
}

.card--inverse .actions {
  margin-top: 28px;
}

/* ── Tiles ─────────────────────────────────────────────────────────────── */

.tiles {
  display: grid;
  gap: 16px;
}

.tile p {
  margin-top: 8px;
  color: var(--color-ink-secondary);
}

/* ── The contact card ──────────────────────────────────────────────────── */

.card--accent {
  background-color: var(--color-accent);
  border-color: transparent;
  color: var(--color-accent-ink);
  padding: 32px 24px;
}

.card--accent h2 {
  max-width: 26ch;
}

.card--accent h2 + p {
  margin-top: 16px;
  color: var(--color-accent-ink);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}

.contact a {
  color: var(--color-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card--accent :focus-visible {
  outline-color: var(--color-accent-ink);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 32px;
  padding: 28px 20px;
}

.footer__brand {
  margin-right: auto;
}

.footer__brand img {
  display: block;
  height: 20px;
  width: auto;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--color-ink-secondary);
  max-width: 26rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__nav a {
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--color-ink-secondary);
  text-decoration: none;
  transition: color 150ms var(--ease-out-quint);
}

.footer__nav a:hover {
  color: var(--color-accent);
}

/* ── Responsive: by structure, never by scale ──────────────────────────── */

@media (min-width: 640px) {
  body {
    padding: 24px;
  }

  .masthead {
    padding: 12px 28px;
  }

  .hero {
    padding: 64px 28px 64px;
  }

  .field {
    padding: 48px 28px 56px;
  }

  .card,
  .chain {
    padding: 28px;
  }

  .card--inverse {
    padding: 0;
  }

  .card--inverse .card__body,
  .card--accent {
    padding: 36px 28px;
  }

  .footer {
    padding: 32px 28px;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .masthead {
    padding: 12px 40px;
  }

  .masthead__product,
  .masthead__nav {
    display: flex;
  }

  .hero {
    padding: 88px 40px 80px;
  }

  .field {
    padding: 64px 40px 72px;
  }

  .section + .section {
    margin-top: 72px;
  }

  .card,
  .chain {
    padding: 32px;
  }

  .card--inverse {
    padding: 0;
  }

  .card--inverse .card__body,
  .card--accent {
    padding: 44px 40px;
  }

  .contour {
    height: 168px;
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
  }

  .split .prose {
    margin-top: 0;
  }

  .footer {
    padding: 36px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
