/* =========================================================
   Gently Used Laptop ($DELL)
   Palette lifted from the coin: lime, black, white, 888 yellow.
   ========================================================= */

:root {
  --lime: #cfe600;
  --lime-deep: #b9cf00;
  --lime-grid: #b9ff00;
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffe234;
  --plastic: #e9e9e2;   /* old laptop casing grey */
  --ink: #000000;

  --font-display: "Titan One", "Arial Black", Impact, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --line: 4px;          /* the sticker outline weight */
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1; }
p { margin: 0; }

:focus-visible {
  outline: var(--line) solid var(--black);
  outline-offset: 3px;
}

.hanzi {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: var(--black);
  background: var(--yellow);
  padding: 0 .35em;
  border: 2px solid var(--black);
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.25em;
  border: var(--line) solid var(--black);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }
.btn--black { background: var(--black); color: var(--lime); }
.btn--black:hover { color: var(--white); }
.btn--outline { background: var(--white); color: var(--black); }
.btn--lg { padding: .9em 1.6em; font-size: 17px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: var(--lime);
  border-bottom: var(--line) solid var(--black);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
}
.nav__links {
  display: none;
  gap: 22px;
  margin-left: auto;
  font-weight: 500;
  font-size: 15px;
}
.nav__links a { text-decoration: none; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--black); }
.nav__cta { margin-left: auto; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* ---------- coin (logo) ---------- */
.coin {
  position: relative;
  display: inline-block;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.coin img { width: 100%; height: 100%; object-fit: cover; }
.coin__fallback { display: none; width: 100%; height: 100%; }
.coin--fallback img { display: none; }
.coin--fallback .coin__fallback { display: block; }
.coin--sm { width: 40px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px);
  overflow: hidden;
}
/* halftone dots, like the coin */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--black) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: .08;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
          mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
}
.hero__copy, .hero__photo { min-width: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tag {
  display: inline-block;
  padding: .35em .8em;
  border: 3px solid var(--black);
  border-radius: 999px;
  background: var(--lime);
  font-weight: 700;
  font-size: 13px;
}
.tag--yellow { background: var(--yellow); }

.hero__title {
  font-size: clamp(64px, 11vw, 132px);
  line-height: .86;
  letter-spacing: -.01em;
  color: var(--white);
  -webkit-text-stroke: 3px var(--black);
  paint-order: stroke fill;
  text-shadow:
    5px 5px 0 var(--black),
    9px 9px 0 var(--lime);
  margin-bottom: 26px;
}
@media (max-width: 480px) {
  .hero__title { -webkit-text-stroke: 2px var(--black); text-shadow: 4px 4px 0 var(--black), 7px 7px 0 var(--lime); }
}

.hero__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 34em;
  margin-bottom: 28px;
}

.ca {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  margin-bottom: 24px;
  border: var(--line) solid var(--black);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--black);
  overflow: hidden;
}
.ca__label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--black);
  color: var(--lime);
  font-weight: 700;
}
.ca__value {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
}
.ca__copy {
  padding: 0 18px;
  border: 0;
  border-left: var(--line) solid var(--black);
  background: var(--lime);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ca__copy:hover:not(:disabled) { background: var(--yellow); }
.ca__copy:disabled { cursor: not-allowed; color: #777; background: var(--plastic); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* the photo */
.hero__photo { position: relative; margin: 0; }
.photo-frame {
  position: relative;
  border: var(--line) solid var(--black);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: 10px 10px 0 var(--black);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.photo-frame__img { width: 100%; height: auto; aspect-ratio: 1280 / 1100; object-fit: cover; }
.photo-frame__fallback { display: none; aspect-ratio: 1280 / 1100; }
.photo-frame__fallback svg { width: 100%; height: 100%; display: block; }
.photo-frame--fallback .photo-frame__img { display: none; }
.photo-frame--fallback .photo-frame__fallback { display: block; }
.photo-frame__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}
.coin--hero {
  position: absolute;
  top: -24px;
  right: 6px;
  width: clamp(96px, 16vw, 150px);
  border: var(--line) solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  transform: rotate(-8deg);
  background: var(--lime);
}
@media (min-width: 900px) {
  .coin--hero { top: -36px; right: -30px; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--black);
  color: var(--lime);
  border-top: var(--line) solid var(--black);
  border-bottom: var(--line) solid var(--black);
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee__track span:nth-child(even) { color: var(--yellow); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- sections ---------- */
.section {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--lime { background: var(--lime); border-top: var(--line) solid var(--black); border-bottom: var(--line) solid var(--black); }
.section--black { background: var(--black); color: var(--white); }
.section__head { margin-bottom: 40px; }
.section__title {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 12px;
}
.section__note { max-width: 40em; font-size: 15px; opacity: .85; }

/* ---------- item specifics ---------- */
.specs {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } }
.spec-list {
  margin: 0;
  border: var(--line) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--black);
  overflow: hidden;
}
.spec-list--item { background: var(--plastic); }
.spec {
  display: grid;
  grid-template-columns: minmax(6.5em, 9.5em) 1fr;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 2px solid var(--black);
}
.spec:last-child { border-bottom: 0; }
@media (max-width: 480px) { .spec { grid-template-columns: 6.5em 1fr; padding: 12px 16px; } }
.spec dt { font-weight: 500; opacity: .7; }
.spec dd { margin: 0; font-weight: 700; }
.spec-list:not(.spec-list--item) .spec dd { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: .01em; }

/* ---------- seller description ---------- */
.listing {
  display: grid;
  gap: 18px;
  max-width: 44em;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: var(--line) solid var(--black);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--black);
  font-size: clamp(16px, 1.5vw, 18px);
}
.listing__sig { font-weight: 700; padding-top: 6px; }

/* ---------- how to buy ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  position: relative;
  padding: 26px 24px 24px;
  border: var(--line) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--lime);
  display: grid;
  gap: 10px;
  align-content: start;
}
.step h3 { font-size: 24px; padding-right: 60px; }
.step p { font-size: 15px; }
.step .btn { justify-self: start; margin-top: 6px; }
.step__num {
  position: absolute;
  top: -18px;
  right: 18px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--black);
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--font-display);
  font-size: 24px;
}

/* ---------- service history ---------- */
.section--black .section__note { opacity: .75; }
.history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) { .history { grid-template-columns: repeat(4, 1fr); } }
.history__item {
  padding: 22px 20px 24px;
  border: var(--line) solid var(--lime);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  align-content: start;
}
.history__item--done { background: var(--lime); color: var(--black); }
.history__phase { font-weight: 700; font-size: 13px; }
.history__item h3 { font-size: 26px; }
.history__item p { font-size: 15px; opacity: .9; }
.history__item--done .history__phase::after { content: ": done"; font-weight: 500; }
.history__item h3 [lang="zh"] { font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-weight: 900; color: var(--yellow); }
.history__item--done h3 [lang="zh"] { color: var(--black); }

/* ---------- community ---------- */
.community { text-align: center; }
.community .section__note { margin: 0 auto 30px; }
.community__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- footer ---------- */
.footer {
  padding: 40px var(--gutter) 48px;
  background: var(--white);
  border-top: var(--line) solid var(--black);
  display: grid;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 18px; }
.footer__copy { font-size: 13px; opacity: .6; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  background: var(--black);
  color: var(--lime);
  border: 3px solid var(--lime);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }
