/* מגרש הבית — מתוך tokens.json (theme.css). קונספט: שלט המחיר על השמשה. */
:root {
  --bg: #f3f5f6;
  --surface: #fbfbfa;
  --text: #1c232a;
  --muted: #56616b;
  --accent: #e0b83a;
  --accent-contrast: #1c232a;
  --dark: #1c232a;
  --on-dark: #f3f5f6;
  --on-dark-muted: #b4bcc4;
  --line: #dfe3e6;
  --line-dark: #333c45;
  --check: #1f6b42;
  --note: #9a5711;
  --font-display: "Karantina", "Heebo", system-ui, sans-serif;
  --font-body: "Heebo", system-ui, sans-serif;
  --radius-control: 8px;
  --radius-card: 12px;
  --shadow-card: 0 1px 2px rgb(28 35 42 / .06), 0 10px 24px -6px rgb(28 35 42 / .08);
  --max: 1280px;
  --sec: 56px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --sec: 96px; } }

* { box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: var(--font-body); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 18px; line-height: 1.6; direction: rtl; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.sec { padding-block: var(--sec); }
.sec.dark { background: var(--dark); color: var(--on-dark); }
.sec.surface { background: var(--surface); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
h2.display { font-size: 36px; }
@media (min-width: 900px) { h2.display { font-size: 56px; } }
.lead { color: var(--muted); font-size: 18px; max-width: 40em; margin: 8px 0 0; }
.dark .lead { color: var(--on-dark-muted); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius-control); font: 700 17px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: inset 0 0 0 2px var(--accent-contrast); }
.btn-primary:hover { background: #ebc54a; }
.btn-human { background: transparent; color: inherit; border-color: currentColor; }
.btn-human:hover { background: rgb(255 255 255 / .08); }
.btn svg { width: 20px; height: 20px; flex: none; }
.micro { font-size: 14px; color: var(--muted); margin-top: 10px; }
.dark .micro { color: var(--on-dark-muted); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--dark); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--dark); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); font: 700 30px/1 var(--font-display); }
.plate { display: inline-grid; place-items: center; width: 44px; height: 22px; background: var(--accent); border: 2px solid var(--accent-contrast); outline: 1.5px solid var(--accent); border-radius: 4px; font: 700 13px/1 var(--font-body); color: var(--accent-contrast); letter-spacing: .04em; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--on-dark-muted); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); border-color: var(--accent); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-inline-start: auto; } }

/* hero */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgb(28 35 42 / .94) 0%, rgb(28 35 42 / .82) 45%, rgb(28 35 42 / .35) 100%); }
@media (max-width: 860px) { .hero-photo::after { background: linear-gradient(0deg, rgb(28 35 42 / .96) 30%, rgb(28 35 42 / .6) 100%); } }
.hero .wrap { position: relative; padding-block: 72px 64px; }
@media (min-width: 900px) { .hero .wrap { padding-block: 120px 104px; } }
.hero h1 { font-size: 56px; max-width: 9em; }
@media (min-width: 900px) { .hero h1 { font-size: 96px; } }
.hero-sub { margin: 12px 0 28px; font-size: 19px; color: var(--on-dark-muted); max-width: 30em; }

.search { background: var(--surface); color: var(--text); border-radius: var(--radius-card); box-shadow: 0 24px 48px -16px rgb(0 0 0 / .45); max-width: 640px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; padding: 16px; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.search form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 18px; align-items: end; }
@media (max-width: 640px) { .search form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field select, .field input { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius-control); background: #fff; color: var(--text); font-size: 17px; padding: 0 14px; }
.field select:focus, .field input:focus { border-color: var(--text); outline: none; }
.search .micro { padding: 0 18px 16px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-control); border: 1.5px solid var(--line-dark); color: var(--on-dark); background: rgb(28 35 42 / .5); }
.chip:hover { border-color: var(--accent); }
.sell-panel { padding: 22px 18px; }
.sell-panel p { margin: 0 0 14px; }

/* section heads */
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.link-more { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* price-sign cards */
.cars { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cars { grid-template-columns: 1fr; } }
.car { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .25s cubic-bezier(.2,0,0,1); }
.car:hover { transform: translateY(-3px); }
.car-photo { aspect-ratio: 4 / 3; background: #dde2e5; overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,0,0,1); }
.car:hover .car-photo img { transform: scale(1.04); }
.sign { position: relative; padding: 18px 20px 20px; border-top: 4px solid var(--text); display: grid; gap: 2px; }
.sign-name { font-weight: 700; font-size: 19px; }
.sign-meta { font-size: 15px; color: var(--muted); }
.sign-price { font: 800 32px/1.2 var(--font-body); letter-spacing: -.01em; margin-top: 6px; }
.sign-price small { font: 500 14px/1 var(--font-body); color: var(--muted); margin-inline-start: 6px; }
.stamp { position: absolute; top: -18px; inset-inline-end: 16px; background: var(--accent); color: var(--accent-contrast); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 6px; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px var(--accent-contrast); }
.stamp.new { transform: rotate(4deg); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split p { font-size: 19px; margin: 18px 0 0; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-weight: 500; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { width: 22px; height: 22px; color: var(--check); flex: none; }

/* report mockup */
.report { background: #fff; border-radius: var(--radius-card); box-shadow: 0 30px 60px -24px rgb(28 35 42 / .35); padding: 28px; transform: rotate(-1.5deg); max-width: 460px; margin-inline: auto; border-top: 6px solid var(--text); }
.report-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.report-head b { font: 700 30px/1.15 var(--font-display); }
.report-head span { font-size: 13px; color: var(--muted); }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.row:last-child { border-bottom: 0; }
.ok { color: var(--check); font-weight: 700; }
.warn { color: var(--note); font-weight: 700; }
.row.flag { background: #fbf3e6; margin-inline: -12px; padding-inline: 12px; border-radius: 6px; border: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.steps li { border-top: 2px solid var(--text); padding-top: 16px; counter-increment: s; }
.steps li::before { content: counter(s); font: 800 48px/1 var(--font-body); color: var(--text); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 22px; }
.steps p { margin: 6px 0 0; color: var(--muted); }

/* promises */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
.promise b { display: inline-block; font: 800 52px/1.2 var(--font-body); letter-spacing: -.02em; background: linear-gradient(transparent 62%, rgb(224 184 58 / .85) 62%, rgb(224 184 58 / .85) 88%, transparent 88%); padding-inline: 4px; }
@media (min-width: 900px) { .promise b { font-size: 64px; } }
.promise span { display: block; color: var(--on-dark-muted); font-size: 17px; margin-top: 4px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--accent); margin-bottom: 10px; }

/* lifestyle */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--on-dark); background: var(--dark); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .5s, opacity .3s; }
.tile:hover img { transform: scale(1.05); opacity: .6; }
.tile div { position: absolute; inset: auto 0 0; padding: 18px; background: linear-gradient(transparent, rgb(28 35 42 / .92)); }
.tile b { display: block; font: 700 32px/1.15 var(--font-display); }
.tile span { font-size: 15px; color: #e4e8eb; }

/* trade-in */
.trade-photo { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 3 / 2; }
.trade-photo img { width: 100%; height: 100%; object-fit: cover; }
.plain-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 24px; font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.plain-link svg { width: 20px; height: 20px; color: #128c4a; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 30px/1 var(--font-body); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

/* cta band */
.band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.band-actions > div { display: grid; }

/* legal + footer */
.legal { font-size: 14px; color: var(--muted); padding-block: 28px; }
.legal p { margin: 4px 0; max-width: 60em; }
footer { background: var(--dark); color: var(--on-dark-muted); font-size: 15px; padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: 1fr; } footer { padding-bottom: 110px; } }
footer b { color: var(--on-dark); display: block; margin-bottom: 8px; }
footer a { color: var(--on-dark-muted); }
footer p { margin: 2px 0; }

/* sticky mobile */
.sticky { position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--dark); border-top: 1px solid var(--line-dark); padding: 10px max(12px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); display: none; gap: 10px; transform: translateY(110%); transition: transform .25s; }
.sticky.on { transform: none; }
.sticky .btn { flex: 1; min-height: 48px; }
.sticky .btn-human { flex: 0 0 auto; color: var(--on-dark); }
@media (max-width: 860px) { .sticky { display: flex; } }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .25s cubic-bezier(0,0,.2,1), transform .25s cubic-bezier(0,0,.2,1); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* inventory page */
.inv-head { padding-block: 48px 20px; }
.inv-head h1 { font-size: 56px; }
@media (min-width: 900px) { .inv-head h1 { font-size: 80px; } }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding-block: 16px 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.filters .field { min-width: 170px; flex: 1; max-width: 230px; }
.count { margin-inline-start: auto; color: var(--muted); font-size: 16px; align-self: center; }
.empty { display: none; text-align: center; padding: 48px 0; color: var(--muted); }
.empty.on { display: block; }

/* car page */
.crumb { display: inline-block; margin: 28px 0 14px; color: var(--muted); text-decoration: none; font-size: 16px; }
.crumb:hover { color: var(--text); }
.car-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.car-title h1 { font-size: 56px; }
@media (min-width: 900px) { .car-title h1 { font-size: 80px; } }
.badge { background: #e3efe7; color: #17502f; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: var(--radius-control); }
.car-sub { color: var(--muted); font-size: 18px; margin: 6px 0 24px; }
.car-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: var(--sec); }
@media (max-width: 960px) { .car-layout { grid-template-columns: 1fr; } }
.car-hero { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16 / 10; background: #dde2e5; }
.car-hero img { width: 100%; height: 100%; object-fit: cover; }
.block { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px; margin-top: 28px; }
.block h2 { font: 700 36px/1.15 var(--font-display); margin-bottom: 8px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 620px) { .specs { grid-template-columns: 1fr; } }
.price-card { position: sticky; top: 92px; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-card); padding: 28px; display: grid; gap: 14px; }
.price-card .big { font: 800 52px/1.15 var(--font-body); letter-spacing: -.02em; }
.price-card .muted { color: var(--on-dark-muted); font-size: 15px; }
.price-card hr { border: 0; border-top: 1px solid var(--line-dark); margin: 4px 0; width: 100%; }
.price-card .field label { color: var(--on-dark); }
.price-card .field input, .price-card .field select { background: #252e36; border-color: var(--line-dark); color: var(--on-dark); }
.price-card form { display: grid; gap: 12px; }
.price-card .why { font-size: 13px; color: var(--on-dark-muted); margin-top: 4px; }
.done { display: none; background: #24392d; border-radius: var(--radius-control); padding: 16px; }
.done.on { display: block; }
.err { color: #ffb4a8; font-size: 14px; margin-top: 4px; display: none; }
.err.on { display: block; }

.wa-short { display: none; }
@media (max-width: 860px) { .top .wa-long { display: none; } .top .wa-short { display: inline; } }
