/* Listing Magpie website. The same bench as the app: a green cutting mat, white photo prints, brown parcel tags,
   and highlighter yellow for the one thing to do (join the waiting list). The magpie's black is the text colour. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #131a17;
  --ink-2: #44504b;
  --ink-3: #66726c;
  --paper: #eef1ed;
  --sheet: #ffffff;
  --rule: #d5dcd7;
  --mat: #2e6a55;
  --mat-deep: #23543f;
  --mat-ink: #e7f0eb;
  --mat-line: rgba(255, 255, 255, 0.075);
  --mat-line-strong: rgba(255, 255, 255, 0.15);
  --kraft: #e3cfae;
  --kraft-edge: #cdae84;
  --kraft-ink: #3b2c17;
  --mark: #f6e35a;
  --mark-edge: #d8c43a;
  --mark-ink: #262200;
  --teal: #22706a;
  --focus: #1f6fd1;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow-print: 0 1px 2px rgba(10, 20, 15, 0.18), 0 12px 28px rgba(10, 20, 15, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sheet); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
h1 {
  font-size: clamp(2.6rem, 1.15rem + 5.6vw, 5.4rem);
  font-weight: 820;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(1.85rem, 1.05rem + 2.7vw, 2.9rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.22rem; font-weight: 720; font-stretch: 104%; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; max-width: 36em; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); margin: 14px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 720; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn-mark { background: var(--mark); color: var(--mark-ink); border-color: var(--mark-edge); box-shadow: 0 2px 0 var(--mark-edge); }
.btn-mark:hover { background: #fbea6a; text-decoration: none; }
.btn-mark:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--mark-edge); }
.btn-small { min-height: 40px; padding: 7px 16px; font-size: 0.95rem; }
.text-link { font-weight: 650; color: inherit; }

/* ---------------------------------------------------------------- header */
.site-head { position: relative; z-index: 2; background: var(--mat); color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; margin-right: auto; }
.brand-mark { width: 52px; height: 52px; flex: none; }
.wordmark { display: block; width: auto; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 8px 10px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.1); }
.site-nav .btn { margin-left: 8px; }
@media (max-width: 880px) { .site-nav .nav-section { display: none; } }
@media (max-width: 560px) { .site-nav .btn { display: none; } }
@media (max-width: 420px) { .wordmark { height: 24px; } .brand-mark { width: 44px; height: 44px; } }

/* ---------------------------------------------------------------- the cutting mat */
.mat {
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: #fff;
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 112px); }
.hero::before { /* a ruler along the top edge of the mat */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 24px);
  background-size: 100% 14px, 100% 7px;
  background-repeat: no-repeat;
  background-position: -1px 0, -1px 0;
}
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.1rem + 5.4vw, 5rem); margin-bottom: clamp(24px, 3.4vw, 44px); }
.hero h1 span { display: block; }
.hero .lead { color: var(--mat-ink); margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-actions .text-link { color: #fff; }
.hero-note { margin: 18px 0 0; font-size: 0.95rem; color: #cfe2d8; max-width: 30em; }

/* the bench: photo prints, clipped together, and the listing they become */
.bench { position: relative; display: grid; grid-template-columns: 0.9fr 1.15fr; gap: 18px; align-items: center; }
.prints { position: relative; height: 360px; }
.print {
  position: absolute; width: 168px; background: #fff; padding: 9px 9px 26px; border-radius: 3px;
  box-shadow: var(--shadow-print);
}
.print svg { display: block; width: 100%; height: auto; border-radius: 1px; }
.print-1 { left: 0; top: 18px; transform: rotate(-7deg); z-index: 2; }
.print-2 { left: 52px; top: 76px; transform: rotate(4deg); z-index: 1; }
.print-3 { left: 14px; top: 214px; transform: rotate(-2deg); width: 150px; z-index: 3; }
.clip { position: absolute; left: 70px; top: 0; width: 34px; z-index: 4; transform: rotate(8deg); }
.arrow { position: absolute; right: -26px; top: 136px; width: 70px; z-index: 5; }
.print-label {
  position: absolute; left: 10px; bottom: 5px; font-size: 0.72rem; font-weight: 650; color: var(--ink-3); letter-spacing: 0.01em;
}

.listing-card {
  position: relative; background: var(--sheet); color: var(--ink); border-radius: 12px; padding: 18px 20px 16px;
  box-shadow: var(--shadow-print); font-size: 0.9rem; line-height: 1.45;
}
.lc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sku {
  display: inline-flex; align-items: center; gap: 6px; background: var(--kraft); color: var(--kraft-ink);
  border: 1px solid var(--kraft-edge); border-radius: 4px 12px 12px 4px; padding: 2px 12px 2px 8px;
  font-weight: 700; font-size: 0.78rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.sku::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; border: 1px solid var(--kraft-edge); }
.example { font-size: 0.75rem; font-weight: 650; color: var(--ink-3); }
.lc-title { font-size: 1.02rem; font-weight: 760; font-stretch: 100%; line-height: 1.3; margin-bottom: 8px; }
.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-3); font-size: 0.8rem; margin-bottom: 12px; }
.cond { background: #e3f1e8; color: #1d4d33; border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 0.76rem; }
.lc-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 0 0 12px; border-top: 1px solid var(--rule); }
.lc-specs div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 0.8rem; }
.lc-specs dt { color: var(--ink-3); }
.lc-specs dd { margin: 0; font-weight: 650; text-align: right; }
.lc-price { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: end; margin-bottom: 12px; }
.price { font-size: 1.9rem; font-weight: 820; font-stretch: 108%; line-height: 1; letter-spacing: -0.01em; }
.price-note { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.78rem; }
.spread { width: 100%; height: 40px; }
.lc-score { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--ink-2); font-weight: 650; }
.lc-score .bar { flex: 1; height: 8px; border-radius: 999px; background: #e6ebe7; overflow: hidden; }
.lc-score .bar i { display: block; height: 100%; background: var(--mat); border-radius: inherit; }
.lc-score b { font-size: 0.95rem; color: var(--ink); }

@media (max-width: 979px) { .bench { max-width: 640px; } }
@media (max-width: 640px) {
  .bench { grid-template-columns: 1fr; }
  .prints { height: 230px; }
  .print { width: 124px; padding: 7px 7px 20px; }
  .print-1 { left: 6%; top: 10px; }
  .print-2 { left: calc(6% + 70px); top: 34px; }
  .print-3 { left: auto; right: 6%; top: 40px; width: 118px; }
  .clip { left: calc(6% + 66px); width: 28px; }
  .arrow { display: none; }
  .print-label { font-size: 0.66rem; bottom: 3px; }
}

/* ---------------------------------------------------------------- sections */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-white { background: var(--sheet); }
.band-kraft { background: var(--kraft); color: var(--kraft-ink); }

/* how it works: four steps, in order */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.steps li { counter-increment: step; position: relative; padding-top: 74px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  font-size: 3.6rem; font-weight: 850; font-stretch: 120%; line-height: 1; color: var(--mat);
}
@media (min-width: 820px) {
  .steps li::after { /* the line joining the steps */
    content: ""; position: absolute; left: 64px; right: -14px; top: 26px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--kraft-edge) 0 8px, transparent 8px 14px);
  }
  .steps li:last-child::after { display: none; }
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }

/* from buying to posting: tags on a string */
.journey { list-style: none; margin: 0; padding: 0; position: relative; }
.journey::before { /* the string */
  content: ""; position: absolute; left: 76px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--kraft-edge) 0 10px, transparent 10px 16px);
}
.journey > li { position: relative; display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 28px; padding: 22px 0; }
.journey > li + li { border-top: 1px solid var(--rule); }
.stage {
  position: relative; align-self: start; justify-self: start; margin-top: 2px;
  background: var(--kraft); color: var(--kraft-ink); border: 1px solid var(--kraft-edge);
  border-radius: 4px 18px 18px 4px; padding: 6px 16px 6px 22px;
  font-weight: 760; font-size: 0.9rem; line-height: 1.25;
}
.stage::before { /* the tag's hole */
  content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--kraft-edge);
}
.journey h3 { margin-bottom: 6px; }
.journey p { margin: 0; color: var(--ink-2); max-width: 40em; }
.journey .feature-note { font-size: 0.92rem; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 700px) {
  .journey::before { left: 10px; }
  .journey > li { grid-template-columns: 1fr; gap: 10px; padding-left: 30px; }
}

/* made for eBay UK */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts strong { display: block; font-size: 1.12rem; font-weight: 760; font-stretch: 104%; margin-bottom: 4px; }
.facts span { color: #5a4526; }

/* you stay in charge */
.charge { display: grid; gap: 28px; }
@media (min-width: 900px) { .charge { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--rule); }
.checks li:first-child { border-top: 1px solid var(--rule); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* questions */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--mat); border-bottom: 2.5px solid var(--mat); transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 42em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* the waiting list */
.join { padding: clamp(64px, 9vw, 120px) 0; }
.join-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 920px) { .join-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.join h2 { color: #fff; }
.join .lead { color: var(--mat-ink); margin-top: 18px; }
.join-card { background: var(--sheet); color: var(--ink); border-radius: 16px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-print); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 450; color: var(--ink-3); }
.field input {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid #b9c3bd; border-radius: 10px;
}
.field input:focus { border-color: var(--mat); outline: none; box-shadow: 0 0 0 3px rgba(46, 106, 85, 0.25); }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-card .btn { width: 100%; justify-content: center; }
.small-print { margin: 14px 0 0; font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; }
.form-message { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-weight: 650; }
.form-message.good { background: #e3f1e8; color: #1d4d33; }
.form-message.bad { background: #fbe7e5; color: #7a1a14; }
.form-message[hidden] { display: none; }

/* guides */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide-list a {
  display: block; height: 100%; padding: 22px 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px;
  color: var(--ink); text-decoration: none;
}
.guide-list a:hover { border-color: var(--mat); }
.guide-list h3 { margin-bottom: 8px; color: var(--ink); }
.guide-list p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.guide-list .read { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--ink); color: #c9d2cd; padding: 48px 0 36px; font-size: 0.95rem; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.site-foot .brand { color: #fff; margin-bottom: 12px; }
.site-foot p { margin: 0 0 8px; max-width: 32em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: #fff; font-weight: 600; }
.site-foot .legal { max-width: none; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: #9fb0a8; }

/* ---------------------------------------------------------------- pages (guides, privacy) */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); color: #fff; max-width: 18em; }
.page-hero .lead { color: var(--mat-ink); margin-top: 18px; }
.crumbs { margin: 0 0 18px; font-size: 0.92rem; color: #cfe2d8; }
.crumbs a { color: #fff; }
.article { background: var(--sheet); padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin: 2.1em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 700; }
.prose .callout {
  background: var(--paper); border-left: 4px solid var(--mat); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 2em 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.meta-line { color: var(--ink-3); font-size: 0.95rem; margin: 0 0 1.6em; }
