/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Colors (B&W) ─────────────────────────────────────────────────── */
:root {
  --black:  #000000;
  --near-black: #111111;
  --dark:   #1a1a1a;
  --mid:    #444444;
  --gray:   #777777;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --white:  #ffffff;
  --radius: 12px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.nav-brand {
  display: flex; align-items: center;
  color: #fff; text-decoration: none;
}
.nav-logo { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav-brand span { color: #fff; opacity: .5; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: #aaa; font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta {
  background: #fff !important; color: #000 !important;
  font-weight: 700 !important; padding: 8px 18px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: #e8e8e8 !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.5rem; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius); font-weight: 700;
  font-size: 1rem; cursor: pointer; border: none; transition: all .2s;
}
.btn-primary  { background: var(--black); color: #fff; }
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-green  { background: var(--black); color: #fff; }
.btn-green:hover { background: #333; transform: translateY(-1px); }
.btn-blue   { background: var(--black); color: #fff; }
.btn-blue:hover  { background: #333; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border: 2px solid #000; color: #000; }
.btn-outline-dark:hover { background: #000; color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero p { font-size: 1.1rem; opacity: .7; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hero-trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-trust-item .num { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-trust-item .lbl { font-size: .78rem; opacity: .5; text-transform: uppercase; letter-spacing: .05em; }

/* ── Section ──────────────────────────────────────────────────────── */
section { padding: 72px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: .78rem; font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--gray); font-size: 1rem; max-width: 560px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .section-sub { margin: 0 auto; }

/* ── How It Works ─────────────────────────────────────────────────── */
.how-bg { background: var(--light-gray); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1.5px solid var(--border);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; margin: 0 auto 16px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--gray); }

/* ── Price Cards ──────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.price-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; transition: all .2s;
}
.price-card:hover { border-color: #000; box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.price-card .model { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.price-card .storage { font-size: .8rem; color: var(--gray); margin-bottom: 12px; }
.price-card .price-row { display: flex; justify-content: space-between; align-items: center; }
.price-card .amount { font-size: 1.4rem; font-weight: 800; color: var(--black); }
.price-card .label { font-size: .75rem; color: var(--gray); }
.price-card .sell-btn {
  display: block; text-align: center; margin-top: 14px;
  background: var(--black); color: #fff; font-weight: 700;
  font-size: .85rem; padding: 8px; border-radius: 8px; transition: background .2s;
}
.price-card .sell-btn:hover { background: #333; }

/* ── Why Us ───────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.why-card {
  padding: 24px; border-radius: var(--radius); background: var(--black); color: #fff;
  border: 1px solid #222;
}
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: .88rem; opacity: .6; }

/* ── Sell Page ────────────────────────────────────────────────────── */
.sell-hero {
  background: var(--black);
  color: #fff; text-align: center; padding: 60px 24px 52px;
}
.quote-wrap { max-width: 680px; margin: 0 auto; }
.quote-card {
  background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 40px 36px; margin: -40px auto 60px; max-width: 680px;
  border: 1.5px solid var(--border);
}
.step-indicator { display: flex; gap: 6px; margin-bottom: 36px; }
.step-dot {
  flex: 1; height: 4px; background: var(--border); border-radius: 99px;
  transition: background .3s;
}
.step-dot.active { background: var(--black); }
.quote-section { display: none; }
.quote-section.visible { display: block; }
.quote-section h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.quote-section .sub { color: var(--gray); font-size: .9rem; margin-bottom: 24px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 8px; }
.option-btn {
  padding: 12px 10px; border: 2px solid var(--border); border-radius: 10px;
  font-size: .88rem; font-weight: 600; background: #fff; cursor: pointer;
  transition: all .15s; text-align: center; color: #111;
}
.option-btn:hover { border-color: #000; background: #f5f5f5; }
.option-btn.selected { border-color: #000; background: #000; color: #fff; }
.condition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.condition-btn {
  padding: 12px; border: 2px solid var(--border); border-radius: 10px;
  font-size: .85rem; font-weight: 600; background: #fff; cursor: pointer;
  transition: all .15s; text-align: left; color: #111;
}
.condition-btn:hover { border-color: #000; }
.condition-btn.selected { border-color: #000; background: #f5f5f5; }
.price-result {
  background: var(--black);
  color: #fff; border-radius: 14px; padding: 28px;
  text-align: center; margin-bottom: 24px;
}
.price-result .offer-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 6px; }
.price-result .offer-amount { font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1; }
.price-result .offer-note { font-size: .85rem; opacity: .55; margin-top: 8px; }
.deductions-list { background: var(--light-gray); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--border); }
.deduct-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 4px 0; }
.deduct-row.base { font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 4px; }
.deduct-row.total { font-weight: 700; color: var(--black); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* ── Contact Form ─────────────────────────────────────────────────── */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .95rem; transition: border .2s;
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus { border-color: #000; outline: none; }
.consent-block {
  background: var(--light-gray); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 16px; margin-bottom: 20px;
}
.consent-row { display: flex; gap: 10px; align-items: flex-start; }
.consent-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #000; }
.consent-row label { font-size: .88rem; font-weight: 500; cursor: pointer; }
.consent-fine { font-size: .78rem; color: var(--gray); margin-top: 8px; line-height: 1.5; }
.consent-fine a { color: #000; text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  background: var(--black); color: #888;
  padding: 48px 24px 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand h3 { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.footer-brand h3 span { color: #888; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: #fff; }

/* ── Mobile Sticky CTA ────────────────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--black); border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 16px;
  flex-direction: row; gap: 10px;
}
.mobile-cta a {
  flex: 1; text-align: center; padding: 12px; border-radius: 10px;
  font-weight: 700; font-size: .9rem;
}
@media(max-width: 768px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner { animation: fadeUp .5s ease both; }
.quote-card { animation: fadeUp .4s ease .1s both; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #000; padding: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .condition-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 28px 20px; margin: -28px 16px 40px; }
  /* Center logo on mobile */
  nav { position: relative; }
  .nav-brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-logo { height: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ── Condition Cards ──────────────────────────────────────────────── */
.cond-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  gap: 12px;
}
.cond-card:hover { border-color: #000; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.cond-card.selected { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.1); background: #fafafa; }
.cond-card-left { flex: 1; min-width: 0; }
.cond-card-title { font-weight: 700; font-size: 1rem; color: #111; display: flex; align-items: center; gap: 8px; }
.cond-badge { font-size: .65rem; font-weight: 700; background: #f0f0f0; color: #333; padding: 2px 7px; border-radius: 4px; letter-spacing: .04em; }
.cond-card-desc { font-size: .83rem; color: var(--gray); margin-top: 3px; }
.cond-card-price { text-align: right; flex-shrink: 0; }
.cond-price-num { display: block; font-size: 1.45rem; font-weight: 800; color: #111; line-height: 1.1; }
.cond-price-ask { display: block; font-size: 1rem; font-weight: 700; color: var(--gray); line-height: 1.1; }
.cond-price-label { display: block; font-size: .67rem; font-weight: 600; color: var(--gray); letter-spacing: .06em; margin-top: 2px; }

/* ── Shop Cards ──────────────────────────────────────────────────── */
.shop-card-img-wrap {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--light-gray);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.shop-card-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px;
}
