/* MotoRadar web — same palette as the app, so the landing page and the phone
   feel like one product. */
:root {
  --bg: #0A0E14;
  --surface: #141A24;
  --surface-alt: #1D2634;
  --border: #2A3446;
  --text: #E8EEF7;
  --muted: #8794AB;
  --faint: #5D6B82;
  --accent: #FF7A1A;
  --accent-dim: #7A3D0D;
  --blue: #4F8CFF;
  --amber: #FFC24B;
  --danger: #FF4D5E;
  --lean: #00D8C0;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* --- top bar --- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 14, 20, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand span.dot { color: var(--accent); }
/* The mark is a square orange tile with a dark badge in it. Rounding it keeps
   it from reading as a stray image dropped into the chrome, and a fixed box
   stops a slow load from shifting the header. */
.brand-mark {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  display: block; object-fit: cover;
}
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.top nav a:hover { color: var(--text); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 12px; border: 0;
  background: var(--accent); color: #17100a; font-weight: 800; font-size: 16px;
  cursor: pointer; text-decoration: none; transition: filter .15s, transform .08s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255,77,94,.4); }

/* --- hero --- */
.hero { padding: 84px 0 64px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 20px;
  letter-spacing: -1.6px; font-weight: 800;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { font-size: clamp(17px, 2.3vw, 21px); color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px; color: var(--faint); font-size: 13px; }
.trust b { color: var(--text); display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }

/* --- sections --- */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; letter-spacing: -.8px; font-weight: 800; }
section p.sub { color: var(--muted); max-width: 640px; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,122,26,.14); color: var(--accent); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- form --- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px;
}
.grid { display: grid; gap: 16px; }

/**
 * `hidden` has to actually hide.
 *
 * The browser's own [hidden] { display: none } loses to any author rule that
 * sets display - and several here do, on the very elements the JS hides:
 * .grid is the lead form itself, label.field is the "what do you want" box.
 * So `form.hidden = true` after a successful submit left the filled-in form on
 * screen with its button stuck on "Gönderiliyor…", and ticking "I only want
 * cash" left the wants box sitting there contradicting it.
 */
[hidden] { display: none !important; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

label.field { display: block; }
label.field > span {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.3px;
  text-transform: uppercase; color: var(--faint); margin-bottom: 7px;
}
input, select, textarea {
  width: 100%; height: 48px; padding: 0 14px; font-size: 16px; font-family: inherit;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); outline: none;
}
textarea { height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; cursor: pointer; }

.check { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.check span { font-size: 15px; color: var(--text); }

.hint { color: var(--faint); font-size: 13px; margin: 6px 0 0; }
.note { padding: 13px 15px; border-radius: 11px; font-size: 14px; line-height: 1.5; }
.note.bad { background: rgba(255,77,94,.11); border: 1px solid rgba(255,77,94,.33); color: #ffb3bb; }
.note.good { background: rgba(0,216,192,.1); border: 1px solid rgba(0,216,192,.3); color: #86f2e4; }
.note.warn { background: rgba(255,194,75,.1); border: 1px solid rgba(255,194,75,.3); color: #ffdd9e; }

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }

.legal { font-size: 12px; color: var(--faint); line-height: 1.7; margin-top: 12px; }

/* --- photo uploader --- */
.drop {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  background: var(--surface-alt);
  transition: border-color .15s, background .15s, color .15s;
}
.drop:hover, .drop:focus-visible { border-color: var(--accent); color: var(--text); outline: none; }
.drop.over { border-color: var(--accent); background: rgba(255,122,26,.09); color: var(--text); }
.drop-inner { display: grid; gap: 7px; justify-items: center; }
.drop-title { margin: 4px 0 0; font-weight: 700; font-size: 16px; color: var(--text); }
.drop-sub { margin: 0; font-size: 13px; color: var(--faint); }
.drop-status { margin: 10px 0 0; font-size: 13px; color: var(--faint); }

.shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shot { position: relative; margin: 0; width: 108px; }
.shot img {
  width: 108px; height: 82px; object-fit: cover;
  border-radius: 11px; border: 1px solid var(--border); display: block;
}
.shot figcaption {
  position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: #17100a;
  background: var(--accent); padding: 2px 6px; border-radius: 5px;
}
.shot-x {
  position: absolute; top: -7px; right: -7px; width: 23px; height: 23px;
  border-radius: 50%; border: 2px solid var(--bg); background: var(--danger);
  color: #fff; font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
}

/* --- feature grid on the home page --- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; display: grid; gap: 9px; align-content: start;
}
.feature .ico { font-size: 26px; line-height: 1; }
.feature h3 { margin: 0; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .more { font-size: 14px; font-weight: 700; text-decoration: none; }
.feature.wide { grid-column: 1 / -1; }
.feature.hot { border-color: var(--accent-dim); background: linear-gradient(180deg, rgba(255,122,26,.07), transparent 60%), var(--surface); }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.contact a { text-decoration: none; }
.contact .label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 800; }
.contact .value { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 5px; display: block; }

/* --------------------------------------------------------------- phones
 *
 * These live at the END of the file on purpose. A media query adds no
 * specificity, so when two rules match equally the later one wins - and when
 * this block sat halfway up, every override it made to a selector defined
 * below it (.features, .contact, .feature, footer .wrap) was silently dead.
 *
 * The page used to carry exactly one media query - the one below for .grid -
 * and leave everything else to flex-wrap. Wrapping is not a layout: the header
 * nav collapsed into cramped two-line stacks of broken link text, the three
 * trust stats broke 2 + 1, and the hero kept 84px of desktop padding on a
 * 390px screen. Most riders open this on a phone, standing next to the bike.
 */
@media (max-width: 640px) {

  /* The brand goes on its own line and the links get a full row underneath,
     rather than being squeezed into whatever is left beside it. */
  .top .wrap { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; padding-bottom: 10px; }
  .top nav {
    margin-left: 0;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .top nav::-webkit-scrollbar { display: none; }
  /* Each link stays on one line; the row scrolls if they do not all fit. */
  .top nav a { white-space: nowrap; flex: 0 0 auto; }

  .hero { padding: 40px 0 36px; }
  .hero p.lead { margin-bottom: 26px; }

  /* Thumb-sized targets: one per row, full width, rather than two odd-width
     buttons on separate lines. */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }

  /* Two even columns beats three wrapping to 2 + 1. */
  .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin-top: 28px; }

  section { padding: 44px 0; }
  .wrap { padding: 0 16px; }
  .card { padding: 18px; }
  .steps, .features, .contact { grid-template-columns: 1fr; gap: 14px; }
  .step, .feature { padding: 18px; }

  /* A form control under 16px makes iOS Safari zoom in on focus, which then
     leaves the page scrolled sideways. */
  input, textarea, select { font-size: 16px; }
  .btn { width: 100%; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  footer a[style*="margin-left"] { margin-left: 0 !important; }
}

/* Very narrow phones, and anyone with large text turned on. */
@media (max-width: 380px) {
  .trust { grid-template-columns: 1fr; gap: 14px; }
  .hero h1 { letter-spacing: -1px; }
}

/* A table of what we collect and why. It has three columns of prose and no
   honest way to become one column, so on a narrow screen it scrolls inside its
   own box - which is better than the page scrolling sideways around it. */
@media (max-width: 640px) {
  .doc .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .doc table { min-width: 460px; }
}

/* Footer legal links. They wrap to as many rows as they need rather than
   squeezing, and the desk link stays pinned right on a wide screen. */
footer .wrap { align-items: center; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.desk-link { margin-left: auto; }
@media (max-width: 640px) {
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal-links { gap: 9px 16px; }
  .desk-link { margin-left: 0 !important; }
}

/* --- "şu an masada": the live queue, as proof the thing is used --- */
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.ad {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 17px;
}
/* The preview is already destroyed server-side; scaling 48px up to card width
   is what makes it read as a photograph rather than a thumbnail. */
.ad-shot { height: 96px; margin: -16px -17px 14px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-alt); }
.ad-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); }
.ad-shot-empty {
  background: linear-gradient(135deg, var(--surface-alt), var(--surface) 60%, var(--accent-dim) 220%);
}
.ad-head { display: flex; align-items: baseline; gap: 10px; }
.ad-head h3 { margin: 0; font-size: 16px; letter-spacing: -.2px; flex: 1; }
.ad-when { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.ad-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--muted); }
/* The half of the card a visitor can act on, so it gets a label and a rule
   above it rather than reading as another fact about the seller's bike. */
.ad-wants { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.ad-wants-label {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
}
.ad-want { display: block; font-size: 13.5px; font-weight: 600; color: var(--accent); }
/* Decoration, not protection: the server never sends a name or a number here,
   so there is nothing behind this to uncover. */
.ad-who {
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); filter: blur(4px); user-select: none; pointer-events: none;
}
/* --- "elimde F800 var, kim ister?" --- */
.findbar {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 16px 18px; margin: 0 0 14px; border-radius: 14px;
}
.findbar .field { flex: 1; min-width: 0; }
/* The shared field label is a shouted two-word caption; this one is a sentence,
   and set in caps with letter-spacing it wrapped into a banner. */
.findbar .field > span {
  font-size: 13px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--muted);
}
.findbar .btn { flex: none; height: 48px; }
.findnote { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.findnote strong { color: var(--text); }

/* A search that finds nothing is still a rider who wants something, so the
   miss is a form invitation rather than a dead end. */
.nomatch { margin-top: 16px; border-color: var(--accent-dim); }
.nomatch h3 { margin: 0 0 8px; font-size: 18px; }
.nomatch p { margin: 0 0 16px; color: var(--muted); }

@media (max-width: 640px) {
  .ads { grid-template-columns: 1fr; }
  /* Side by side, the button squeezes the input to nothing on a phone. */
  .findbar { display: block; padding: 16px; }
  .findbar .btn { width: 100%; margin-top: 12px; }
}

/* An optional consent sits apart from the required fields, so it does not read
   as one more thing that must be ticked to continue. */
.check.consent {
  align-items: flex-start; padding: 13px 15px; border-radius: 12px;
  background: var(--surface-alt); border: 1px solid var(--border);
}
.check.consent span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.check.consent b { color: var(--text); font-weight: 700; }

/* --- photo viewer --- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: rgba(6, 9, 14, .93); padding: 48px 16px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.lightbox img {
  max-width: min(1100px, 100%); max-height: 100%;
  object-fit: contain; border-radius: 10px; display: block;
}
.lightbox button {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; cursor: pointer; border-radius: 10px; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .16); }
.lightbox button:disabled { opacity: .25; cursor: default; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; font-size: 15px; }
.lb-nav { flex: none; width: 44px; height: 70px; font-size: 28px; }
.lb-count {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums;
}
/* A photo that opens is a photo you can click, and should look like one. */
[data-zoom] { cursor: zoom-in; }
@media (max-width: 640px) {
  .lightbox { padding: 56px 8px; }
  .lb-nav { width: 36px; height: 56px; font-size: 22px; }
}
