/* Lost & Listed. Flat pastel: soft colors, rounded geometry, friendly sans, no shadows to speak of. */

:root {
  --bg: #fbf9f5;
  --card: #ffffff;
  --ink: #2a2d34;
  --muted: #6d7280;
  --line: #e6e2da;
  --mint: #cfeee3;
  --mint-deep: #2f9e7a;
  --peach: #ffd9c4;
  --coral: #f2745f;
  --coral-deep: #d4573f;
  --lavender: #e3dcf7;
  --lavender-deep: #6e5bb7;
  --butter: #fff1b8;
  --sky: #cbe6f6;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

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

a { color: var(--mint-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 12px; }

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin: 0 0 8px;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }

.nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.9rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--mint); text-decoration: none; }
.nav a.active { background: var(--ink); color: #fff; }

.cart-btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--coral);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.cart-btn:hover { background: var(--coral-deep); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #000; text-decoration: none; }
.btn.coral { background: var(--coral); border-color: var(--coral); }
.btn.coral:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.wide { width: 100%; text-align: center; }
.btn.sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- hero ---------- */

.hero { background: var(--mint); }
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 16px 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero .lede { font-size: 1.1rem; max-width: 50ch; margin-bottom: 22px; }
.hero-img { border-radius: 20px; cursor: zoom-in; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.search-bar {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  max-width: 520px;
  margin-bottom: 18px;
}
.search-bar input { flex: 1; border: 0; font-family: inherit; font-size: 1rem; background: transparent; min-width: 0; }
.search-bar input:focus { outline: none; }
.search-bar button { border-radius: 999px; }

/* ---------- sections ---------- */

.section { max-width: 1160px; margin: 0 auto; padding: 52px 16px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.peach { background: var(--peach); border: 0; }
.band.lavender { background: var(--lavender); border: 0; }
.band.butter { background: var(--butter); border: 0; }

/* ---------- listing grid ---------- */

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

.listing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.listing:hover { transform: translateY(-2px); border-color: var(--ink); }
.listing .imgwrap { position: relative; display: block; }
.listing img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.listing .badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--coral); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.listing .badge.looking { background: var(--butter); color: var(--ink); top: auto; bottom: 10px; }
.listing-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing h3 { margin: 0; font-size: 1.02rem; }
.listing h3 a { color: var(--ink); }
.listing .where { margin: 0; font-size: 0.85rem; color: var(--muted); }
.listing .finder-line { margin: 0; font-size: 0.8rem; color: var(--muted); }
.listing-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 1.15rem; }

.chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--lavender);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 4px;
}
.chip.mint { background: var(--mint); }
.chip.peach { background: var(--peach); }
.chip.sky { background: var(--sky); }

/* ---------- filters ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-bottom: 22px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.filters label { font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.filters select, .filters input {
  font-family: inherit; font-size: 0.92rem; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.filters .count { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

/* ---------- listing detail ---------- */

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.detail .photo { border-radius: var(--radius); cursor: zoom-in; }
.detail h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.detail .now-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.detail .now-photos img { border-radius: 12px; cursor: zoom-in; aspect-ratio: 1; object-fit: cover; }
.detail .now-photos figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

.facts { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.facts th, .facts td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); width: 36%; padding-right: 12px; }

.features { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.features li { background: var(--mint); border-radius: 10px; padding: 8px 12px; font-size: 0.92rem; }
.features li::before { content: "\2713"; color: var(--mint-deep); font-weight: 700; margin-right: 8px; }

.looking-box { border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; background: var(--butter); }
.looking-box .eyebrow { color: var(--ink); margin-bottom: 4px; }
.looking-box p { margin: 0; }

.finder-card {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0;
}
.finder-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.finder-card p { margin: 0; font-size: 0.9rem; }
.finder-card .stars { color: var(--coral); font-size: 0.85rem; }

.big-price { font-size: 2rem; font-weight: 800; margin: 12px 0 8px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}
.step:nth-child(1) .num { background: var(--mint); }
.step:nth-child(2) .num { background: var(--peach); }
.step:nth-child(3) .num { background: var(--lavender); }
.step:nth-child(4) .num { background: var(--butter); }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.trust div { text-align: center; padding: 18px; }
.trust strong { display: block; font-size: 2rem; font-weight: 800; }
.trust span { color: var(--muted); font-size: 0.9rem; }

/* ---------- finders ---------- */

.finders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.finder {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center;
}
.finder img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; cursor: zoom-in; }
.finder h3 { margin-bottom: 2px; }
.finder .handle { color: var(--lavender-deep); font-weight: 600; font-size: 0.9rem; margin: 0 0 4px; }
.finder .beat { color: var(--muted); font-size: 0.88rem; margin: 0 0 10px; }
.finder .stats { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; font-size: 0.82rem; }
.finder .stats strong { display: block; font-size: 1.1rem; }
.finder .bio { font-size: 0.9rem; text-align: left; margin: 0; }

/* ---------- two-col ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: 20px; cursor: zoom-in; }

.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.story img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.story p { margin: 0; padding: 12px 14px; font-size: 0.92rem; }

/* ---------- prose pages ---------- */

.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.callout { background: var(--peach); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.callout p { margin: 0; }

/* ---------- faq ---------- */

.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--coral); font-weight: 800; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item div { padding: 0 18px 16px; max-width: 70ch; }

/* ---------- forms ---------- */

.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 560px; }
.form-box label { display: block; font-size: 0.8rem; font-weight: 700; margin: 14px 0 6px; }
.form-box label:first-child { margin-top: 0; }
.form-box input, .form-box select, .form-box textarea {
  width: 100%; font-family: inherit; font-size: 0.98rem; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.form-box input:focus, .form-box select:focus, .form-box textarea:focus { outline: 2px solid var(--mint-deep); border-color: transparent; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }
.form-box .btn { margin-top: 18px; }

/* ---------- lost tool ---------- */

.lost-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.lost-out { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.lost-out canvas { width: 100%; height: auto; display: block; border-radius: 10px; }
.lost-out .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.matches { display: grid; gap: 10px; margin-top: 14px; }
.match { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 8px; }
.match img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.match p { margin: 0; font-size: 0.88rem; }
.match .price { font-size: 1rem; margin-left: auto; white-space: nowrap; }

/* ---------- cart drawer ---------- */

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%);
  background: #fff; border-left: 1px solid var(--line); z-index: 100;
  transform: translateX(100%); transition: transform 0.2s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cart-line small { display: block; color: var(--muted); font-size: 0.78rem; }
.cart-line button { border: 0; background: none; color: var(--coral); cursor: pointer; font-family: inherit; font-size: 0.8rem; text-decoration: underline; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px; }
.drawer-foot .total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.drawer-foot .discount { display: flex; gap: 8px; margin-bottom: 12px; }
.drawer-foot .discount input { flex: 1; font-family: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.drawer-note { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; }
.close-x { border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; padding: 6px 12px; font-family: inherit; border-radius: 999px; font-weight: 600; }
.close-x:hover { border-color: var(--ink); }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; background: rgba(42, 45, 52, 0.9); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; cursor: zoom-out; }
.modal.open { display: flex; }
.modal img { max-width: 94vw; max-height: 90vh; border-radius: 12px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 32px 16px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; font-size: 0.88rem; color: var(--muted); }
.footer-inner h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.footer-inner a { display: block; color: var(--ink); margin-bottom: 4px; }
.footer-inner .legal { font-size: 0.78rem; margin-top: 12px; }

/* ---------- marketing ---------- */

.marketing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.marketing-grid img { border-radius: var(--radius); cursor: zoom-in; }
figure { margin: 0; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero-inner, .detail, .two-col, .lost-wrap { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 10px; font-size: 0.85rem; }
  .hero-inner { padding: 36px 16px 32px; }
  .section { padding: 40px 16px; }
  .filters .count { margin-left: 0; width: 100%; }
}
