:root {
  --ink: #14213d;
  --paper: #fff;
  --mist: #f1f4f8;
  --line: #d9dfe8;
  --muted: #5b6780;
  --sign: #ffc93c;
  --sold: #d62828;
  --wa: #0f8a47;
  --r: 14px;
  --body: "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --display: "Karantina", "IBM Plex Sans Hebrew", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--body); color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }

/* ---- shared pieces ---- */

.logo { font-weight: 700; font-size: 27px; letter-spacing: -0.5px; text-decoration: none; direction: ltr; display: inline-flex; align-items: baseline; }
.logo i { width: 9px; height: 9px; background: var(--sign); margin-left: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 1.5px solid transparent; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--ink); background: none; }
.btn-sign { background: var(--sign); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sold { background: var(--sold); color: #fff; }
.btn-ghost { border-color: #b9c2d0; background: var(--paper); }
.btn-sm { padding: 7px 14px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:hover { filter: brightness(0.96); }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.danger { color: #8f1414; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 16px; }

.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sign); flex: none; }
.avatar.lg { width: 96px; height: 96px; }
.avatar-empty { display: grid; place-items: center; background: var(--sign); color: var(--ink); font-weight: 700; font-size: 24px; }
.avatar-empty.lg { font-size: 40px; }

.stamp { position: absolute; top: 14px; inset-inline-start: 14px; font: 700 30px/1.1 var(--display); color: var(--sold); border: 3px solid var(--sold); border-radius: 6px; padding: 2px 12px 0; background: rgba(255, 255, 255, 0.93); transform: rotate(-7deg); }
.stamp.big { font-size: 58px; top: 24px; inset-inline-start: 24px; border-width: 5px; padding-inline: 20px; }

.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; background: var(--mist); }
.noimg.big { height: 300px; font-size: 17px; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); background: var(--mist); border-radius: var(--r); }
.error, .ok { padding: 10px 14px; border-radius: 8px; border-inline-start: 4px solid; }
.error { background: #fdecec; color: #8f1414; border-color: var(--sold); }
.ok { background: #e8f6ee; color: #0c5a30; border-color: var(--wa); }
.hint, .lead, .quota { color: var(--muted); font-size: 15px; }

.made { margin-top: 48px; padding: 28px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 15px; }
.made .logo { font-size: 20px; color: var(--ink); }

.ownerbar { display: flex; justify-content: space-between; gap: 12px; background: var(--sign); padding: 8px 20px; font-size: 15px; }
.ownerbar a { font-weight: 600; }

/* ---- WhatsApp message preview ---- */

.chat { background: #efe7de; border-radius: 18px; padding: 22px 16px; max-width: 400px; }
.bubble { background: #d9fdd3; border-radius: 10px; padding: 4px; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.18); }
.bubble-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border-radius: 8px 8px 0 0; background: #b9c8dc; }
.bubble-noimg { display: grid; place-items: center; color: #44546e; font-size: 14px; }
.bubble-text { background: #c8efc1; padding: 8px 10px; border-radius: 0 0 8px 8px; display: grid; gap: 2px; }
.bubble-text strong { font-size: 15px; line-height: 1.3; font-weight: 600; color: #111b21; }
.bubble-text span { font-size: 13.5px; color: #3f4f45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bubble-text small { font-size: 12.5px; color: #5c6e63; }
.bubble-link { padding: 6px 8px 4px; font-size: 14.5px; color: #027eb5; text-align: left; direction: ltr; overflow-wrap: anywhere; }

/* ---- home ---- */

.btn-google { background: var(--ink); color: #fff; font-size: 19px; padding: 13px 26px 13px 16px; border-radius: 14px; gap: 12px; box-shadow: 0 5px 0 rgba(20, 33, 61, 0.18); }
.btn-google .g { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; flex: none; }
.btn-google-light { background: var(--sign); color: var(--ink); box-shadow: none; }

.hero { display: grid; gap: 40px; padding-block: 20px 56px; align-items: center; }
.hero h1 { font: 700 clamp(58px, 16.5vw, 108px) / 0.86 var(--display); letter-spacing: 0.5px; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-copy > p { font-size: 19px; max-width: 31em; }
.hero-note { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 15px; }
.hero-note li::before { content: "✓"; color: var(--wa); font-weight: 700; margin-inline-end: 6px; }

.scene { display: block; width: 100%; height: 100%; object-fit: cover; background: #cdd5e1; }
.phone { width: min(310px, 82vw); margin-inline: auto; border: 9px solid var(--ink); border-radius: 40px; overflow: hidden; background: var(--paper); box-shadow: 14px 14px 0 var(--sign); transform: rotate(2deg); }
.phone-photo { position: relative; aspect-ratio: 5 / 4; }
.phone-body { padding-inline: 16px; }
.phone .sign { margin-top: -26px; padding: 7px 16px 1px; }
.phone .sign strong { font-size: 46px; }
.phone-title { font-weight: 600; font-size: 17px; line-height: 1.3; margin-top: 14px; }
.phone .facts { gap: 26px; margin-block: 14px 12px; padding-block: 10px 8px; }
.phone .facts dd { font-size: 38px; }
.phone-bar { display: flex; gap: 6px; padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.phone-bar .btn { padding-inline: 10px; }
.phone-bar .btn-wa { flex: 1; }
.phone-bar svg { width: 18px; height: 18px; }

.band { padding-block: 52px; border-top: 1.5px solid var(--ink); display: grid; gap: 32px; }
.band > h2, .closer h2 { font: 700 clamp(42px, 10.5vw, 68px) / 0.92 var(--display); letter-spacing: 0.5px; text-wrap: balance; }
.band h3 { font-size: 21px; line-height: 1.3; }

.band-lead { font-size: 19px; max-width: 34em; margin-top: -14px; }
.compare { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; max-width: 760px; align-items: start; }
.compare::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%; border-inline-start: 2px dashed #9aa5b8; }
.compare::after { content: "מול"; position: absolute; z-index: 1; top: 34%; inset-inline-start: 50%; translate: 50% -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 19px/1 var(--display); padding-top: 2px; box-shadow: 0 0 0 5px var(--paper); }
.shot { display: grid; gap: 14px; min-width: 0; }
.shot-old h3 { color: var(--muted); }

.mini { container-type: inline-size; aspect-ratio: 9 / 19.5; border: 6px solid #0e1730; border-radius: clamp(26px, 8vw, 44px); overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1.5px #5b6780, 10px 10px 0 var(--line); }
.shot-new .mini { box-shadow: 0 0 0 1.5px #5b6780, 10px 10px 0 var(--sign); }
.screen { height: 100%; display: flex; flex-direction: column; font-size: max(10px, 6.2cqw); line-height: 1.3; }
.screen > * { flex: none; }
.m-status { direction: ltr; display: flex; align-items: center; justify-content: space-between; padding: 0.5em 1.5em 0.25em; font-size: 0.85em; font-weight: 600; }
.m-island { width: 32%; height: 1.5em; border-radius: 99px; background: #0e1730; }
.m-batt { width: 1.7em; height: 0.8em; border-radius: 2.5px; background: var(--ink); }
.m-url { direction: ltr; margin: 0.2em 0.9em 0.5em; padding: 0.22em; border-radius: 99px; background: #eef1f5; color: var(--muted); font-size: 0.82em; text-align: center; }
.shot-old .m-status, .shot-old .m-url { opacity: 0.75; }
.screen .m-photo { position: relative; flex: 1 1 0; min-height: 0; }
.shot-old .m-photo .scene { filter: grayscale(1) opacity(0.6); }
.m-row { position: relative; display: grid; gap: 0.1em; padding: 0.55em 0.9em; padding-inline-end: 2.6em; border-top: 1px solid var(--line); }
.m-row b { font-weight: 600; }
.m-row small { font-size: 0.88em; color: var(--muted); }
.m-cards { display: flex; gap: 0.4em; margin-top: 0.3em; }
.m-cards i { flex: 1; height: 2.2em; border-radius: 4px; background: #d5dbe5; }
.shot-new .m-cards i { background: #cfe0f2; border-bottom: 0.6em solid var(--sign); }
.bad { background: #fdecec; color: #8f1414; }
.bad small { color: #a94a4a; }
.bad .m-cards i { background: #f3c5c5; }
.shot-old .m-row { padding-block: 0.4em; }
.shot-old .m-cards i { height: 1.7em; }
.m-others i { display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 0.74em; line-height: 1.05; text-align: center; height: 2.5em; background: #eeb0b0; }
.bad::after, .good::after { position: absolute; inset-inline-end: 0.45em; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 1.65em; height: 1.65em; border-radius: 50%; color: #fff; font-weight: 700; font-size: 1.05em; line-height: 1; }
.bad::after { content: "✕"; background: var(--sold); }
.good::after { content: "✓"; background: var(--wa); box-shadow: 0 0 0 2px #fff; }
.m-head { border-top: 0; padding-top: 0; padding-inline-end: 0.9em; }
.m-sign { justify-self: start; position: relative; margin-top: -0.75em; margin-bottom: 0.35em; padding: 0.12em 0.5em 0; border-radius: 5px; background: var(--sign); font: 700 1.9em/1.1 var(--display); letter-spacing: 0.5px; }
.m-agent { grid-template-columns: auto 1fr; align-items: center; gap: 0.6em; }
.m-agent > span:last-child { display: grid; }
.m-avatar { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--sign); font-weight: 700; }
.m-wa { background: var(--wa); color: #fff; border-top: 0; text-align: center; padding-block: 0.9em; }
.m-wa.good::after { background: #fff; color: var(--wa); box-shadow: none; }

.marks { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 15.5px; line-height: 1.35; }
.marks li { display: grid; grid-template-columns: 22px 1fr; }
.marks li::before { font-weight: 700; }
.marks-no { color: var(--muted); }
.marks-no li::before { content: "✕"; color: var(--sold); }
.marks-yes { font-weight: 500; }
.marks-yes li::before { content: "✓"; color: var(--wa); }

.nobr { white-space: nowrap; }
.examples { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 0 20px 6px; }
.examples::-webkit-scrollbar { display: none; }
.examples .card { flex: 0 0 min(80vw, 340px); scroll-snap-align: center; }
.examples .card h3 { font-size: 17px; }
.m-thumbs .scene { flex: 1; min-width: 0; width: auto; height: 2.6em; border-radius: 4px; }

.gains { display: grid; gap: 36px; }
.gains > div { display: grid; gap: 6px; align-content: start; }
.gains p { color: var(--muted); }
.gain-show { display: flex; align-items: center; height: 70px; margin-bottom: 6px; }
.stamp-inline { position: static; display: inline-block; font-size: 40px; }
.opened-chip { display: grid; padding: 8px 14px; border-radius: 10px; background: #e8f6ee; color: #0c5a30; border-inline-start: 4px solid var(--wa); line-height: 1.35; }
.opened-chip b { font-weight: 600; font-size: 16px; }
.opened-chip small { font-size: 14px; }
.url-chip { direction: ltr; padding: 9px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 19px; }

.how { display: grid; gap: 36px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 9px; background: var(--sign); font: 700 44px/1 var(--display); padding-top: 3px; }
.steps p { color: var(--muted); }
.how .chat { margin-inline: auto; transform: rotate(-2deg); width: 100%; }
.bubble-img { overflow: hidden; }

.faq { max-width: 720px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 16px; font-weight: 600; font-size: 19px; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 56ch; }

.closer { background: var(--ink); color: #fff; padding-block: 60px; }
.closer .wrap { display: grid; gap: 20px; justify-items: center; text-align: center; }
.closer p { opacity: 0.8; font-size: 15px; }
.made-home { margin-top: 0; border-top: 0; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; padding-block: 40px 88px; }
  .band { padding-block: 72px; gap: 40px; }
  .compare { gap: 40px; }
  .compare { gap: 26px 96px; }
  .compare::after { width: 56px; height: 56px; font-size: 30px; }
  .marks { font-size: 17px; }
  .examples { overflow: visible; margin-inline: 0; padding: 0; gap: 24px; }
  .examples .card { flex: 1 1 0; }
  .gains { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: 1.2fr 0.8fr; }
}

.auth { max-width: 420px; margin: 9vh auto; padding: 24px; display: grid; gap: 16px; }
.auth h1 { font-size: 30px; }
.devlogin { margin-top: 12px; border: 1.5px dashed #b9c2d0; border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.devlogin h2 { font-size: 16px; }
.devlogin label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }

/* ---- agent page ---- */

.agent-head { background: var(--ink); color: #fff; padding-block: 32px 28px; }
.agent-head .wrap { display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: center; }
.agent-head h1 { font: 700 clamp(46px, 11vw, 78px) / 0.92 var(--display); letter-spacing: 0.5px; }
.agent-sub { opacity: 0.85; font-size: 16px; }
.agent-areas { color: var(--sign); font-weight: 500; }
.agent-bio, .agent-cta { grid-column: 1 / -1; }
.agent-bio { max-width: 60ch; opacity: 0.92; }
.agent-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.agent-head .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); direction: ltr; }
.agent-main { padding-block: 28px; display: grid; gap: 24px; }

.tabs { display: flex; gap: 8px; }
.tabs a { padding: 7px 18px; border: 1.5px solid #b9c2d0; border-radius: 999px; text-decoration: none; font-weight: 500; }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { display: block; text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding-inline: 12px; }
.card-price { position: relative; display: inline-block; margin-top: -22px; background: var(--sign); border-radius: 7px; padding: 4px 12px 0; font: 700 34px/1 var(--display); letter-spacing: 0.5px; }
.card-price span { font-size: 0.7em; margin-inline-end: 2px; }
.card-price small { font: 500 14px var(--body); }
.card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; margin-top: 8px; }
.card-facts { color: var(--muted); font-size: 15px; }
.is-closed .card-img img { filter: grayscale(0.6); }
.is-closed .card-price { background: var(--mist); }
.closed-list { display: grid; gap: 16px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.closed-list h2 { font-size: 22px; }

/* ---- property page ---- */

.gallery { position: relative; background: var(--ink); }
.track { display: flex; gap: 3px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; }
.gallery .nav { display: none; position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.gallery .prev { inset-inline-start: 16px; }
.gallery .next { inset-inline-end: 16px; }
.count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(20, 33, 61, 0.78); color: #fff; font-size: 14px; padding: 1px 11px; border-radius: 999px; direction: ltr; }
@media (min-width: 860px) {
  .track img { flex: 0 0 auto; width: auto; height: 540px; aspect-ratio: auto; scroll-snap-align: start; }
  .track img:only-child { width: 100%; }
}
@media (hover: hover) { .gallery .nav { display: block; } }

.sheet { padding-bottom: 8px; max-width: 760px; }
.sign { position: relative; display: inline-flex; flex-direction: column; margin-top: -30px; background: var(--sign); border-radius: 9px; padding: 9px 20px 2px; transform: rotate(-1.5deg); box-shadow: 0 5px 0 rgba(20, 33, 61, 0.14); }
.sign-deal { font-weight: 600; font-size: 15px; }
.sign strong { font: 700 clamp(52px, 14vw, 80px) / 0.95 var(--display); letter-spacing: 1px; }
.sign strong span { font-size: 0.6em; margin-inline-end: 3px; }
.sign small { font: 500 16px var(--body); }
.sign-closed { background: var(--sold); color: #fff; }
.prop h1 { font-size: clamp(24px, 5.4vw, 34px); line-height: 1.22; margin-top: 20px; }
.addr { color: var(--muted); margin-top: 2px; }
.facts { display: flex; gap: 34px; margin-block: 22px; padding-block: 14px 12px; border-block: 1.5px solid var(--line); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { font: 700 54px/0.9 var(--display); }
.facts dt { color: var(--muted); font-size: 14px; }
.feats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feats li { border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: 15px; }
.video { width: 100%; max-height: 72vh; margin-top: 24px; border-radius: var(--r); background: #000; }
.desc { margin-top: 24px; font-size: 18px; max-width: 62ch; }
.desc p + p { margin-top: 0.8em; }
.agent-card { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 16px; background: var(--mist); border-radius: var(--r); text-decoration: none; }
.agent-card > span { display: grid; }
.agent-card small { color: var(--muted); font-size: 14.5px; }
.agent-card em { font-style: normal; text-decoration: underline; font-size: 15px; margin-top: 2px; }

.has-actions { padding-bottom: 82px; }
.actions { position: fixed; z-index: 10; bottom: 0; inset-inline: 0; display: flex; gap: 8px; justify-content: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.actions .btn-wa { flex: 1; max-width: 420px; }

/* ---- dashboard ---- */

.dash { background: var(--mist); }
.dash-main { display: grid; gap: 18px; padding-block: 8px 64px; max-width: 820px; }
.dash-main h1 { font-size: 28px; line-height: 1.25; }
.dash-main h2 { font-size: 19px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crumb { font-size: 15px; }
.panel, .photo-edit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }

.linkbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 20px; }
.linkbox h2 { font-size: 15px; font-weight: 500; opacity: 0.8; }
.linkbox a { font-size: 21px; font-weight: 600; display: inline-block; }

.rows { list-style: none; padding: 0; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 92px 1fr; gap: 6px 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.row-img { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--mist); }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-title { font-weight: 600; text-decoration: none; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.row-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (min-width: 640px) {
  .row { grid-template-columns: 92px 1fr auto; }
  .row-actions { grid-column: auto; }
}

.badge { font-size: 13px; font-weight: 600; padding: 1px 10px; border-radius: 999px; background: #e3e8f0; color: var(--muted); }
.badge-active { background: #dff3e6; color: #0c5a30; }
.badge-closed { background: #fde3e3; color: #8f1414; }
.badge-hidden { background: #fff1c4; color: #6b5200; }

.form { display: grid; gap: 16px; }
.form > h2, .form-actions, .field-wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 15px; padding: 0; }
.field > legend { margin-bottom: 6px; }
.field small { color: var(--muted); font-size: 14px; }
input:not([type="radio"], [type="checkbox"], [type="file"]), select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #b9c2d0; border-radius: 10px; padding: 11px 12px; }
textarea { resize: vertical; }
.seg, .checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.seg label, .checks label { display: inline-flex; align-items: center; gap: 6px; }
.seg legend, .checks legend { width: 100%; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.slug-input { display: flex; align-items: center; background: var(--paper); border: 1.5px solid #b9c2d0; border-radius: 10px; font-weight: 400 !important; }
.slug-input em { font-style: normal; color: var(--muted); padding-left: 12px; }
.slug-input input { border: 0 !important; padding-left: 2px !important; background: none !important; }
.form-actions, .upload-row, .share-row, .status-row, .photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upload-status { color: var(--muted); font-size: 15px; }

.thumbs { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.thumbs:empty { display: none; }
.thumbs li { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs button, .cover-tag { font: inherit; font-size: 13px; padding: 5px 6px; text-align: center; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.thumbs button { background: var(--ink); color: #fff; cursor: pointer; }
.cover-tag { background: var(--sign); font-weight: 600; }
.video-edit { display: grid; gap: 8px; justify-items: start; }
.video-edit video { max-width: min(100%, 380px); border-radius: 10px; background: #000; }

@media (prefers-reduced-motion: no-preference) { .track { scroll-behavior: smooth; } }

/* ---- stats ---- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles dd { font: 700 clamp(40px, 11vw, 58px) / 0.95 var(--display); letter-spacing: 0.5px; }
.tiles dt { color: var(--muted); font-size: 14px; line-height: 1.3; }
.tiles div { display: flex; flex-direction: column; }

.chart { width: 100%; max-width: 560px; }
.bars { width: 100%; height: auto; display: block; overflow: visible; }
.bars .bar path { fill: var(--ink); }
.bars .bar .hit { fill: transparent; }
.bars .bar:hover .hit { fill: var(--mist); }
.bars .bar:hover path { fill: #2f4a86; }
.bars .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.bars .baseline { stroke: #b9c2d0; }
.bars .axis { fill: var(--muted); font: 18px var(--body); }

table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th { text-align: start; font-weight: 600; color: var(--muted); font-size: 14px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
th:not(:first-child), td:not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.table-view table { margin-top: 8px; }

.feed { list-style: none; padding: 0; display: grid; gap: 10px; }
.feed li { line-height: 1.4; }
.feed small { display: block; color: var(--muted); font-size: 14px; }

/* ---- personal links ---- */

.link-new { display: flex; gap: 8px; }
.link-new input { flex: 1; min-width: 0; }
.links { list-style: none; padding: 0; display: grid; }
.links li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding-block: 12px; border-top: 1px solid var(--line); }
.link-who { display: grid; }
.link-who span { font-size: 14.5px; }
.opened { color: #0c5a30; font-weight: 500; }
.unopened { color: var(--muted); }
.link-actions { display: flex; align-items: center; gap: 8px; }

/* ---- map ---- */

.map-section { display: grid; gap: 14px; }
.map-section h2 { font-size: 22px; }
.map { height: 340px; border-radius: var(--r); overflow: hidden; background: var(--mist); z-index: 0; }
@media (min-width: 860px) { .map { height: 440px; } }
.pin { background: var(--sign); color: var(--ink); font: 700 14px/1 var(--body); padding: 6px 9px; border-radius: 8px; border: 2px solid var(--ink); white-space: nowrap; width: max-content !important; height: auto !important; translate: -50% -100%; direction: ltr; }
.leaflet-popup-content { font: 15px/1.4 var(--body); direction: rtl; text-align: right; margin: 12px 14px; }
.leaflet-popup-content a { color: var(--ink); font-weight: 600; }
.per-prop td:first-child { width: 52%; }

/* ---- property page polish ---- */

.track img, .track video { height: min(68svh, 118vw); aspect-ratio: auto; background: #1d2b4a; }
.track img { cursor: zoom-in; }
.track video { flex: 0 0 100%; width: 100%; object-fit: contain; scroll-snap-align: center; }
@media (min-width: 860px) {
  .track img, .track video { height: 540px; }
  .track video { flex: 0 0 auto; width: auto; max-width: 80vw; scroll-snap-align: start; }
}

.where { margin-top: 32px; display: grid; gap: 12px; }
.where h2, .more h2 { font-size: 22px; }
.map-one { height: 240px; }
@media (min-width: 860px) { .map-one { height: 320px; } }
.where-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; font-weight: 500; }

.more { margin-top: 40px; display: grid; gap: 14px; }
.more-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 20px 6px; scrollbar-width: none; }
.more-row::-webkit-scrollbar { display: none; }
.more-row .card { flex: 0 0 min(76vw, 300px); scroll-snap-align: center; }
@media (min-width: 1080px) { .more-row { max-width: 1040px; margin-inline: auto; width: 100%; } }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0f1c; color: #fff; }
.lightbox::backdrop { background: #0a0f1c; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; overflow: auto; scroll-snap-align: center; display: grid; place-items: center; }
.lb-slide img { max-width: 100%; max-height: 100dvh; object-fit: contain; cursor: zoom-in; }
.lb-slide.zoom { place-items: start; }
.lb-slide.zoom img { max-width: none; max-height: none; width: 240%; cursor: zoom-out; }
.lb-count, .lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); background: rgba(10, 15, 28, 0.7); color: #fff; border-radius: 999px; }
.lb-count { right: 14px; padding: 4px 14px; font-size: 15px; direction: ltr; }
.lb-close { left: 12px; width: 44px; height: 44px; border: 0; font-size: 20px; cursor: pointer; }

/* ---- share image ---- */

.formats { display: flex; gap: 6px; }
.formats button { font: inherit; font-size: 15px; font-weight: 500; padding: 6px 14px; border: 1.5px solid #b9c2d0; border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.formats button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-canvas { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 12px; background: var(--ink); box-shadow: 0 8px 24px rgba(20, 33, 61, 0.18); }
.card-canvas[data-format="post"], .card-canvas[data-format="square"] { max-width: 340px; }

/* ---- admin (founders only) ---- */
.admin .dash-main { max-width: 1040px; }
.admin .topnav a[aria-current] { font-weight: 700; text-decoration: none; }
.admin .tiles { gap: 24px 16px; }
.admin .tiles dd { font-size: 52px; }
.admin-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.admin .chart { max-width: none; }
.bars .trend { fill: none; stroke: #c7791a; stroke-width: 2.5; stroke-linejoin: round; }
.admin .scroll { overflow-x: auto; }
.admin td small { display: block; color: var(--muted); font-size: 13.5px; }
.funnel .meter { width: 30%; min-width: 80px; }
.funnel .meter span { display: block; height: 12px; min-width: 2px; border-radius: 3px; background: var(--ink); margin-inline-start: auto; }
.admin-search { display: flex; gap: 8px; }
.admin-search input[type="search"] { min-width: 240px; }
.admin code { background: var(--mist); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; overflow-wrap: anywhere; }

/* ---- guides ---- */

.cover { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; }
.cover svg { display: block; width: 100%; height: 100%; }
.tag { justify-self: start; display: inline-block; background: var(--sign); border-radius: 6px; padding: 1px 9px; font-size: 13.5px; font-weight: 600; }
.read { color: var(--muted); font-size: 14.5px; }

.guide-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.guide-card { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.guide-card .cover { transition: transform 0.15s; }
.guide-card:hover .cover { transform: translateY(-3px); }
.guide-card h3 { font-size: 19px; }

.guides { padding-block: 12px 8px; display: grid; gap: 30px; }
.guides h1, .guide h1 { font: 700 clamp(44px, 11vw, 72px) / 0.92 var(--display); letter-spacing: 0.5px; text-wrap: balance; }
.guides-lead { font-size: 19px; margin-top: -18px; color: var(--muted); }

.lead-guide { display: grid; gap: 18px; text-decoration: none; padding: 14px; border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 7px 7px 0 var(--sign); background: var(--paper); }
.lead-guide-text { display: grid; gap: 10px; align-content: center; padding: 0 6px 8px; }
.lead-guide h2 { font: 700 clamp(34px, 8vw, 50px) / 0.95 var(--display); letter-spacing: 0.5px; text-wrap: balance; }
.lead-guide p { color: var(--muted); }
.lead-guide .more { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.guide-rows { list-style: none; padding: 0; display: grid; }
.guide-rows a { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line); text-decoration: none; }
.guide-rows li:last-child a { border-bottom: 1px solid var(--line); }
.guide-rows .cover { aspect-ratio: 1; border-radius: 12px; }
.guide-rows div { display: grid; gap: 5px; }
.guide-rows h2 { font-size: 19px; line-height: 1.3; }
.guide-rows p { display: none; color: var(--muted); font-size: 16px; }
.guide-rows a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

.guide { padding-block: 12px 8px; display: grid; gap: 30px; }
.guide article, .guide-cta, .guide-more { width: 100%; max-width: 720px; margin-inline: auto; }
.guide article { display: grid; gap: 22px; font-size: 18px; line-height: 1.7; }
.guide-head { display: grid; gap: 14px; }
.crumbs { font-size: 15px; display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--muted); }
.guide-answer { background: #fff4cf; border-radius: var(--r); padding: 18px 20px; font-weight: 500; display: grid; gap: 4px; box-shadow: 5px 5px 0 var(--sign); }
.guide-answer b { font: 700 26px / 1 var(--display); letter-spacing: 0.5px; }
.guide article section { display: grid; gap: 14px; }
.guide article h2 { font-size: 27px; line-height: 1.25; margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.guide article h2::before { content: ""; width: 13px; height: 13px; background: var(--sign); }

.guide article ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: n; }
.guide article ol li { counter-increment: n; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.guide article ol li::before { content: counter(n); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--sign); font: 700 29px / 1 var(--display); padding-top: 2px; }
.guide article ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.guide article ul li { display: grid; grid-template-columns: 24px 1fr; gap: 6px; }
.guide article ul li::before { content: ""; width: 9px; height: 9px; background: var(--sign); margin-top: 0.62em; }
.guide article ul.do, .guide article ul.dont { border-radius: var(--r); padding: 16px 18px; }
.guide article ul.do { background: #e8f6ee; }
.guide article ul.dont { background: #fdecec; }
.guide article ul:is(.do, .dont) li::before { width: auto; height: auto; background: none; margin: 0; font-weight: 700; }
.guide article ul.do li::before { content: "✓"; color: var(--wa); }
.guide article ul.dont li::before { content: "✕"; color: var(--sold); }
.guide article ul.say { background: #efe7de; border-radius: 18px; padding: 18px 16px; gap: 10px; justify-items: start; }
.guide article ul.say li { display: block; background: #d9fdd3; border-radius: 10px 10px 10px 2px; padding: 8px 12px; font-size: 16.5px; line-height: 1.45; max-width: 30em; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.18); }
.guide article ul.say li::before { content: none; }

.pro, .con, .fit { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; }
:is(.pro, .con, .fit) b { justify-self: start; border-radius: 6px; padding: 0 9px; font-size: 15px; }
.pro b { background: #e8f6ee; color: #0c5a30; }
.con b { background: #fdecec; color: #8f1414; }
.fit b { background: var(--mist); }

.swap { display: grid; gap: 10px; }
.swap div { display: grid; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.swap span { padding: 9px 16px; }
.swap span:first-child { background: #fdecec; color: #8f1414; text-decoration: line-through; text-decoration-color: rgba(143, 20, 20, 0.45); }
.swap span:last-child { background: #e8f6ee; color: #0c5a30; font-weight: 500; }

.quotes { display: grid; gap: 14px; }
.quotes blockquote { margin: 0; padding: 16px 18px; background: var(--mist); border-radius: var(--r); border-inline-start: 5px solid var(--ink); display: grid; gap: 8px; justify-items: start; }

.fig { margin: 6px 0; display: grid; gap: 10px; justify-items: center; }
.fig figcaption { color: var(--muted); font-size: 15px; text-align: center; max-width: 34em; line-height: 1.45; }
.fig .chat { width: 100%; transform: rotate(-1.5deg); }
.fig-phone { padding-block: 10px 22px; }
.fig-photo { position: relative; width: 100%; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; }
.fig-photo img { width: 100%; height: 100%; object-fit: cover; }
.thirds { position: absolute; inset: 0; background: linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, 0.8) 33.2% 33.5%, transparent 33.5% 66.5%, rgba(255, 255, 255, 0.8) 66.5% 66.8%, transparent 66.8%), linear-gradient(to bottom, transparent 33.1%, rgba(255, 255, 255, 0.8) 33.1% 33.6%, transparent 33.6% 66.4%, rgba(255, 255, 255, 0.8) 66.4% 66.9%, transparent 66.9%); }
.fig-tag { position: absolute; background: var(--sign); border-radius: 6px; padding: 1px 10px; font-size: 14.5px; font-weight: 600; }
.fig-tag-a { top: 12px; inset-inline-start: 12px; }
.fig-tag-b { bottom: 12px; inset-inline-end: 12px; }

.guide .faq { max-width: none; }
.guide .faq summary { font-size: 18px; }
.guide-cta { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 24px; display: grid; gap: 12px; justify-items: start; box-shadow: 7px 7px 0 var(--sign); }
.guide-cta h2 { font: 700 42px / 0.95 var(--display); letter-spacing: 0.5px; }
.guide-cta p { opacity: 0.85; }
.guide-more { display: grid; gap: 18px; margin-top: 10px; }
.guide-more > h2 { font: 700 40px / 1 var(--display); letter-spacing: 0.5px; }

@media (min-width: 720px) {
  .lead-guide { grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 18px; }
  .guide-rows a { grid-template-columns: 220px 1fr; gap: 26px; padding-block: 22px; }
  .guide-rows .cover { aspect-ratio: 16 / 10; }
  .guide-rows h2 { font-size: 24px; }
  .guide-rows p { display: block; }
  .swap div { grid-template-columns: 1fr 1.6fr; }
}
