/* postcode.co.il — the original design (desktop home/results + mobile home/results) as one responsive sheet. */
:root {
  --red: #e2241b;
  --red-dark: #b51910;
  --red-soft: #fdecea;
  --red-line: #f3b4ae;
  --ink: #1d1d26;
  --ink-2: #3a3a46;
  --muted: #65656f;
  --muted-2: #8a8a97;
  --line: #ededf2;
  --field: #d9d9e2;
  --bg-soft: #f6f6f9;
  --ok-bg: #eafaf0;
  --ok: #157a3e;
  --warn-bg: #fff4e5;
  --warn: #8a4b00;
  --dark: #15151d;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
input, select, button { font-family: inherit; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -40px; right: 12px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; color: #fff; }
:focus-visible { outline: 3px solid rgba(226, 36, 27, .45); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow-1100 { max-width: 1100px; }

.mock-bar { background: #fff4c2; color: #6b5200; text-align: center; font-size: 13.5px; font-weight: 700; padding: 6px 12px; }

/* ---- header ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 28px; padding-top: 15px; padding-bottom: 15px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-badge {
  width: 44px; height: 44px; border-radius: 13px; background: var(--red);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: 0 6px 16px -6px rgba(226, 36, 27, .5);
}
.brand-badge.sm { width: 38px; height: 38px; border-radius: 11px; box-shadow: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.brand-name span { color: var(--red); }
.brand-sub { font-size: 12.5px; font-weight: 600; color: var(--muted-2); margin-top: 3px; }
.main-nav { flex: 1; display: flex; gap: 26px; justify-content: center; }
.nav-a { font-size: 15.5px; font-weight: 600; color: #4a4a57; }
.nav-a:hover, .nav-a.is-active { color: var(--red); }
.nav-a.is-active { font-weight: 700; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid #e6e6ec; border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}

/* ---- hero ---- */
.hero { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-deco.a { top: -140px; left: -90px; width: 360px; height: 360px; background: rgba(255, 255, 255, .07); }
.hero-deco.b { bottom: -180px; right: 8%; width: 320px; height: 320px; background: rgba(0, 0, 0, .06); }
.hero-inner { padding-top: 76px; padding-bottom: 134px; text-align: center; position: relative; }
.hero-pill { display: inline-block; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 52px; line-height: 1.1; font-weight: 900; letter-spacing: -.8px; margin-bottom: 16px; }
.hero p { margin: 0 auto; max-width: 620px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .92); font-weight: 500; }

/* ---- search card ---- */
.search-wrap { max-width: 1000px; margin: -98px auto 0; padding: 0 24px; position: relative; z-index: 4; }
.search-card {
  background: #fff; border: 1px solid #eeeef3; border-radius: 22px;
  box-shadow: 0 30px 70px -30px rgba(20, 20, 45, .32); padding: 10px 28px 30px;
}
.tabs { display: flex; border-bottom: 1px solid #eef0f3; margin-bottom: 24px; }
.tab {
  flex: 1; padding: 16px 12px; font-size: 16.5px; font-weight: 800; background: transparent;
  border: 0; border-bottom: 3px solid transparent; color: var(--muted-2); cursor: pointer; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.tab:hover { color: var(--red); }
.form-alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }

.fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.f-city, .f-street { flex: 2 1 230px; }
.f-house { flex: 1 1 110px; }
.f-entry { flex: 0 1 100px; }
.f-code { flex: 3 1 280px; }
.field input {
  width: 100%; height: 54px; border: 1px solid var(--field); border-radius: var(--radius);
  padding: 0 15px; font-size: 16px; color: var(--ink); background: #fff;
}
.field input::placeholder { color: #a3a3ae; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226, 36, 27, .14); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.f-code input { font-size: 18px; letter-spacing: 2px; text-align: right; }
.field-error { font-size: 13.5px; font-weight: 600; color: var(--red-dark); }
.hint { margin: 14px 2px 0; font-size: 13.5px; color: var(--muted-2); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 26px; border: 0; border-radius: var(--radius);
  background: var(--red); color: #fff; font-size: 16.5px; font-weight: 800; cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-go { flex: 1 1 190px; margin-top: 28px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border: 1.5px solid var(--field); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 15.5px; font-weight: 700;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.link-btn { border: 0; background: transparent; padding: 6px 2px; font-size: 13.5px; font-weight: 700; color: var(--red); cursor: pointer; }

/* autocomplete */
.ac { position: relative; }
.ac-list {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 30; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #e6e6ec; border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(20, 20, 45, .35); max-height: 320px; overflow-y: auto;
}
.ac-list li { padding: 10px 12px; border-radius: 9px; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: #fff3f3; color: var(--red-dark); }
.ac-list li.ac-empty { color: var(--muted-2); font-weight: 500; cursor: default; background: none; }

/* ---- how it works ---- */
.how { padding: 76px 0 20px; }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--red); letter-spacing: .4px; }
.section-head h2 { margin: 10px 0; font-size: 34px; font-weight: 900; letter-spacing: -.5px; }
.section-head p { margin: 0 auto; max-width: 520px; font-size: 17px; color: var(--muted); }
.how-grid { display: flex; flex-wrap: wrap; gap: 22px; }
.how-card {
  flex: 1 1 280px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.how-card:hover { box-shadow: 0 18px 44px -22px rgba(20, 20, 40, .26); transform: translateY(-2px); }
.how-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.how-num { font-size: 13px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
.how-card h3 { margin-bottom: 8px; font-size: 20px; font-weight: 800; }
.how-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---- popular ---- */
.popular { margin-top: 64px; background: var(--bg-soft); padding: 56px 0; }
.popular h2 { margin-bottom: 6px; font-size: 24px; font-weight: 900; }
.popular p { margin: 0 0 22px; font-size: 16px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 11px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e3ea;
  border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 700; color: var(--ink-2);
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip-zip { color: var(--red); letter-spacing: 1px; }

/* ---- help banner ---- */
.help-wrap { padding: 60px 0; }
.help-banner { background: var(--ink); border-radius: 22px; padding: 40px 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; color: #fff; }
.help-text { flex: 2 1 420px; min-width: 0; }
.help-text h2 { margin-bottom: 10px; font-size: 26px; font-weight: 900; }
.help-text p { margin: 0; font-size: 16.5px; line-height: 1.6; color: #c7c7d2; }
.help-banner .btn-primary { flex: 0 0 auto; height: 52px; }

/* ---- results ---- */
.page-result, .page-zip, .page-notfound, .page-error { background: var(--bg-soft); }
.summary-bar { background: #fff; border-bottom: 1px solid var(--line); }
.summary-bar .container { padding-top: 16px; padding-bottom: 16px; }
.summary-compact { display: none; }
.fields.compact { gap: 12px; align-items: flex-start; }
.fields.compact .field label { font-size: 12.5px; color: var(--muted-2); }
.fields.compact .field input { height: 46px; border-radius: 10px; font-size: 15px; border-color: #dcdce4; }
.fields.compact .f-city, .fields.compact .f-street { flex: 2 1 200px; }
.fields.compact .f-house { flex: 1 1 90px; }
.fields.compact .btn-go { flex: 0 0 auto; height: 46px; margin-top: 25px; border-radius: 10px; font-size: 15px; padding: 0 22px; }

.result-main { padding-top: 32px; padding-bottom: 56px; max-width: 1148px; }
.result-for { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.result-for strong { color: var(--ink); }
.result-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.result-card {
  flex: 2 1 460px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: 0 16px 44px -28px rgba(20, 20, 45, .22);
}
.result-card.plain { max-width: 640px; margin: 0 auto; }
.result-top { padding: 30px 32px 26px; border-bottom: 1px solid #f0f0f4; }
.result-card.plain .result-top { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--red-soft); color: var(--red-dark); }
.result-label { font-size: 14.5px; font-weight: 700; color: var(--muted-2); margin-bottom: 8px; }
.result-address { font-size: 23px; font-weight: 800; margin-bottom: 22px; line-height: 1.3; }
.zip-title { font-size: 40px; letter-spacing: 5px; text-align: right; margin-bottom: 10px; }
.result-msg { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.zip-box {
  background: var(--red-soft); border: 1.5px dashed var(--red-line); border-radius: 16px; padding: 24px 26px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.zip-box-label { font-size: 13px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
.zip-digits { font-size: 48px; font-weight: 900; letter-spacing: 7px; line-height: 1; }
.btn-copy { height: 50px; font-size: 15.5px; padding: 0 22px; }
.btn-copy.is-done { background: var(--ok); }
.inline-btn { height: 50px; font-size: 15.5px; }

.result-details { padding: 24px 32px 30px; }
.details-h { font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.tile { flex: 1 1 140px; background: #f8f8fb; border: 1px solid #eeeef3; border-radius: 12px; padding: 14px 16px; }
.tile-k { font-size: 12.5px; color: var(--muted-2); font-weight: 700; margin-bottom: 4px; }
.tile-v { font-size: 16px; font-weight: 700; }
.note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted-2); }
.result-card.plain .result-details, .page-zip .result-details { padding-top: 0; }
.page-zip .result-details { padding-top: 18px; }

.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.map-art {
  position: relative; height: 190px; background-color: #eef2f0;
  background-image: linear-gradient(#e2e7e4 1px, transparent 1px), linear-gradient(90deg, #e2e7e4 1px, transparent 1px);
  background-size: 26px 26px;
}
.road { position: absolute; background: #dfe4e1; border-radius: 6px; }
.road.r1 { top: 44%; left: 10%; width: 80%; height: 11px; transform: rotate(-9deg); }
.road.r2 { top: 20%; right: 22%; bottom: 10%; width: 11px; }
.map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); }
.map-link { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-size: 14.5px; font-weight: 700; }
.near-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 10px; }
.near-h { font-size: 14px; font-weight: 800; padding: 14px 14px 10px; }
.near-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
  padding: 10px 14px; border-radius: 11px; color: var(--ink-2); font-size: 15px; font-weight: 600;
}
.near-row:hover { background: #fafafc; color: var(--ink); }
.near-zip { font-weight: 800; letter-spacing: 1px; color: var(--red); display: inline-flex; }
.zip-matches { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.zip-matches .near-row + .near-row { border-top: 1px solid #f3f3f6; border-radius: 0; }
.btn-new { display: none; }

/* ---- footer ---- */
.site-footer { background: var(--dark); color: #c9c9d4; border-top: 4px solid var(--red); }
.footer-cols { max-width: 1100px; padding-top: 50px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 36px; }
.footer-brand { flex: 1.4 1 260px; min-width: 0; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #9a9aa8; max-width: 300px; }
.footer-brand .footer-stat { margin-top: 10px; color: #c2c2cf; font-weight: 600; }
.footer-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-h { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-col a { color: #c2c2cf; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2a35; }
.footer-bottom-row { max-width: 1100px; padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: #8f8f9d; }

/* ======================= mobile ======================= */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .header-row { padding-top: 12px; padding-bottom: 12px; gap: 12px; justify-content: space-between; }
  .brand-badge { width: 38px; height: 38px; border-radius: 11px; box-shadow: none; }
  .brand-badge svg { width: 21px; height: 21px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .menu-btn { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .3); padding: 6px 16px 12px;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav .nav-a { padding: 13px 4px; border-bottom: 1px solid #f3f3f6; font-size: 16px; }
  .main-nav .nav-a:last-child { border-bottom: 0; }

  .page-home { background: var(--bg-soft); }
  .hero-deco.a { top: -60px; left: -40px; width: 170px; height: 170px; background: rgba(255, 255, 255, .08); }
  .hero-deco.b { display: none; }
  .hero-inner { text-align: right; padding-top: 26px; padding-bottom: 56px; }
  .hero-pill { font-size: 12px; padding: 5px 12px; margin-bottom: 14px; }
  .hero h1 { font-size: 27px; line-height: 1.15; letter-spacing: -.4px; margin-bottom: 8px; }
  .hero h1 br { display: none; }
  .hero p { font-size: 15px; margin: 0; }

  .search-wrap { margin-top: -40px; padding: 0 16px; }
  .search-card { border-radius: 18px; padding: 6px 16px 20px; box-shadow: 0 20px 44px -26px rgba(20, 20, 45, .3); }
  .tabs { margin-bottom: 18px; }
  .tab { padding: 14px 8px; font-size: 15px; }
  .fields { gap: 13px; }
  .f-city { flex: 1 1 100%; }
  .f-street { flex: 2 1 0; }
  .f-house { flex: 1 1 0; }
  .f-entry { flex: 1 1 0; }
  .f-code { flex: 1 1 100%; }
  .field label { font-size: 13px; }
  .field input { height: 50px; border-radius: 11px; }
  .btn-go { flex: 1 1 100%; margin-top: 0; height: 52px; border-radius: 11px; font-size: 16px; }
  .hint { font-size: 13px; }

  .how { padding-top: 48px; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 26px; }
  .how-card { padding: 22px 20px; }
  .popular { margin-top: 40px; padding: 36px 0; background: transparent; }
  .chip { padding: 9px 15px; font-size: 14px; }
  .help-wrap { padding: 20px 0 40px; }
  .help-banner { padding: 28px 22px; border-radius: 18px; }
  .help-text h2 { font-size: 21px; }
  .help-banner .btn-primary { width: 100%; }

  /* results */
  .summary-bar .container { padding-top: 12px; padding-bottom: 12px; }
  .summary-compact { display: flex; align-items: center; gap: 10px; }
  .icon-square { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: #f3f3f6; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
  .summary-chip { flex: 1; min-width: 0; height: 44px; border: 1px solid #e3e3ea; border-radius: 12px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
  .summary-pin { color: var(--red); display: inline-flex; }
  .summary-text { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .summary-form { display: none; margin-top: 12px; }
  .summary-form.always { display: block; margin-top: 0; }
  .is-editing .summary-form { display: block; }
  .fields.compact .f-city { flex: 1 1 100%; }
  .fields.compact .f-street { flex: 2 1 0; }
  .fields.compact .f-house { flex: 1 1 0; }
  .fields.compact .btn-go { flex: 1 1 100%; margin-top: 0; }

  .result-main { padding: 16px 16px 32px; }
  .result-for { display: none; }
  .result-grid { gap: 14px; }
  .result-card { flex-basis: 100%; border-radius: 18px; box-shadow: 0 16px 36px -26px rgba(20, 20, 45, .3); }
  .result-top { padding: 20px 18px 18px; }
  .badge { font-size: 12.5px; padding: 5px 11px; margin-bottom: 14px; }
  .result-label { font-size: 13.5px; margin-bottom: 2px; }
  .result-address { font-size: 20px; margin-bottom: 14px; }
  .zip-title { font-size: 34px; }
  .zip-box { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 16px; border-radius: 14px; }
  .zip-digits { font-size: 44px; letter-spacing: 6px; }
  .btn-copy { width: 100%; height: 52px; font-size: 16px; }
  .result-details { padding: 16px 18px 18px; }
  .details-h { font-size: 13.5px; margin-bottom: 10px; }
  .tiles { gap: 8px; }
  .tile { flex: 1 1 0; padding: 10px 11px; border-radius: 11px; }
  .tile-k { font-size: 11.5px; }
  .tile-v { font-size: 14.5px; }
  .note { font-size: 12.5px; margin-top: 12px; }
  .side { flex-basis: 100%; gap: 14px; }
  .map-art { height: 140px; background-size: 22px 22px; }
  .map-pin svg { width: 32px; height: 32px; }
  .near-h { font-size: 13.5px; padding: 12px 12px 6px; }
  .btn-new { display: inline-flex; }

  .footer-cols { padding-top: 32px; gap: 24px; }
  .footer-col { flex: 1 1 40%; }
  .footer-bottom-row { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .how-card { transition: none; }
  .how-card:hover { transform: none; }
}
