/* Ourbuilding — אתר השיווק.
   כיוון: "לוח המודעות בלובי". נייר חם, דיו כהה, ירוק של המערכת, צהוב של פתק.
   אין אנימציות: כמו במערכת עצמה, שום דבר לא זז. */

:root {
  --green: #26825a;        /* הצבע הראשי של המערכת */
  --green-hover: #1f6b4a;
  --green-deep: #18553b;
  --green-soft: #e4f1e8;
  --paper: #faf5e9;
  --paper-2: #f1e9d6;
  --ink: #17231c;
  --ink-soft: #3f4b44;
  --sun: #f2c14e;
  --note: #fbe38a;
  --cork: #c79a66;
  --wall: #fffdf7;
  --wall-2: #efe6d2;
  --glass: #cfe6dc;
  --line: #d9cfb8;
  --red: #a8322b;

  --serif: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --sans: 'Heebo', system-ui, sans-serif;
}

html { font-size: 112.5%; color-scheme: light; scroll-behavior: auto; }
/* החריג היחיד ל"שום דבר לא זז": גלילה רכה אל חלק בדף, כדי שיראו לאן הגיעו. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.size-large { font-size: 128%; }
html.size-xlarge { font-size: 145%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2 { font-family: var(--serif); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }

.kicker {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 1rem;
  margin-bottom: .6rem;
}
.kicker::before { content: ''; display: inline-block; width: 1.6rem; height: 3px; background: var(--green); vertical-align: middle; margin-inline-end: .6rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: 1rem; top: -5rem; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .55rem 1.4rem;
  border: 2.5px solid var(--ink); border-radius: .6rem;
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; text-align: center;
  box-shadow: 0 4px 0 var(--ink);
}
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-hover); }
.btn-ghost { background: var(--wall); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(3px); }
.btn-big { min-height: 3.6rem; padding-inline: 1.9rem; font-size: 1.2rem; }
.btn-huge { min-height: 4.4rem; padding-inline: 3rem; font-size: 1.5rem; }

/* ---------- סרגל עליון ---------- */
.top { background: var(--paper); border-bottom: 2.5px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 2.6rem; height: 2.6rem; flex: none; }
.brand-name { font: 900 1.5rem/1 var(--serif); white-space: nowrap; }
.top-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem 1rem; }
.top .btn { white-space: nowrap; }

.textsize { display: flex; align-items: center; gap: .3rem; }
.textsize-label { font-size: .9rem; color: var(--ink-soft); margin-inline-end: .3rem; }
.textsize button {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: var(--wall); color: var(--ink);
  border: 2px solid var(--ink); border-radius: .5rem;
  font: 700 1.15rem/1 var(--serif); cursor: pointer;
}
.textsize button[aria-pressed='true'] { background: var(--ink); color: #fff; }

.lang {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .5rem;
  font-weight: 700; font-size: 1.05rem; text-underline-offset: .25em; white-space: nowrap;
}
.lang:hover { color: var(--green-deep); }

/* ---------- פתיח ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: end; }
.hero-text { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.mark { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding-inline: .1em; }
.lead { font-size: 1.35rem; line-height: 1.6; color: var(--ink-soft); max-width: 34rem; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-note { margin-top: 1.2rem; font-size: 1rem; color: var(--ink-soft); }
.building { display: block; width: 100%; height: auto; max-height: 34rem; }

/* ---------- לוח המודעות ---------- */
.board {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0 2px, transparent 3px) 0 0 / 22px 22px,
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.10) 0 2px, transparent 3px) 0 0 / 17px 17px,
    var(--cork);
  border-block: 2.5px solid var(--ink);
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.board h2 { color: var(--ink); }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.note {
  position: relative;
  background: var(--note);
  padding: 2.4rem 1.2rem 1.6rem;
  font: 700 1.3rem/1.4 var(--serif);
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(23,35,28,.35);
}
.n1 { transform: rotate(-2deg); }
.n2 { transform: rotate(1.5deg); background: #fff; }
.n3 { transform: rotate(-1deg); background: #fff; }
.n4 { transform: rotate(2deg); }
.pin { position: absolute; top: .7rem; inset-inline-start: 50%; width: 1rem; height: 1rem; margin-inline-start: -.5rem; border-radius: 50%; background: #c8443c; border: 2px solid var(--ink); }
.board-answer {
  display: inline-block; margin-top: 3rem; padding: .9rem 1.6rem;
  background: var(--ink); color: #fff; font-size: 1.35rem; border-radius: .6rem;
}
.board-answer strong { color: var(--sun); }

/* ---------- מספרים ---------- */
.nums { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); }
.nums .kicker { color: var(--sun); }
.nums .kicker::before { background: var(--sun); }
.nums-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.6rem; }
.nums-list li { padding-inline: 2rem; border-inline-start: 2px solid rgba(255,255,255,.25); }
.nums-list li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.nums-list li:last-child { padding-inline-end: 0; }
.num { display: block; font: 900 clamp(4rem, 9vw, 6.5rem)/1 var(--serif); color: var(--sun); letter-spacing: -0.02em; text-align: right; margin-bottom: .8rem; }
.nums-list p { margin-top: .4rem; color: #cfd6d1; }
.nums-end { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 2px solid rgba(255,255,255,.25); font: 700 1.5rem/1.3 var(--serif); }

/* ---------- מה יש במערכת ---------- */
.what { padding-block: clamp(3.5rem, 8vw, 6rem); }
.intercom {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--wall);
  border: 2.5px solid var(--ink); border-radius: 1rem;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
}
.intercom li { display: flex; gap: 1.2rem; padding: 1.6rem 1.5rem; border-bottom: 2px solid var(--line); }
.intercom li:nth-child(odd) { border-inline-end: 2px solid var(--line); }
.intercom li:nth-last-child(-n+2) { border-bottom: 0; }
.intercom p { color: var(--ink-soft); margin-top: .3rem; }
.bell {
  flex: none; width: 3.2rem; height: 3.2rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff;
  border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 4px var(--wall), 0 3px 0 var(--ink);
  font: 900 1.4rem/1 var(--serif);
}
.excel {
  margin-top: 2rem; padding: 1.1rem 1.4rem;
  background: var(--green-soft); border-inline-start: 6px solid var(--green);
  font-size: 1.15rem; font-weight: 500;
}

/* ---------- נוח לשימוש ---------- */
.easy { background: var(--green-deep); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); border-block: 2.5px solid var(--ink); }
.easy-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.easy .kicker { color: var(--sun); }
.easy .kicker::before { background: var(--sun); }
.easy-head p:last-child { margin-top: 1.2rem; font-size: 1.25rem; color: #dcebe2; }
.easy-list li { padding: 1.1rem 0; border-bottom: 1.5px solid rgba(255,255,255,.28); font-size: 1.2rem; color: #dcebe2; }
.easy-list li:first-child { padding-top: 0; }
.easy-list li:last-child { border-bottom: 0; }
.easy-list strong { display: block; font: 700 1.5rem/1.3 var(--serif); color: #fff; }

/* ---------- מחיר ---------- */
.price { padding-block: clamp(3.5rem, 8vw, 6rem); }
.price-card {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  background: var(--wall);
  border: 2.5px solid var(--ink); border-radius: 1rem;
  box-shadow: 0 6px 0 var(--ink);
}
.price-tag {
  position: relative;
  margin: 2rem; padding: 2.6rem 2.4rem 1.8rem;
  background: var(--note);
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(23,35,28,.35);
  transform: rotate(-2deg);
  text-align: center;
}
.price-sum { display: flex; align-items: flex-end; justify-content: center; gap: .6rem; }
.price-num { font: 900 clamp(5rem, 13vw, 8rem)/.85 var(--serif); letter-spacing: -0.03em; }
.price-unit { display: grid; justify-items: start; font: 700 1.25rem/1.2 var(--sans); padding-bottom: .35rem; }
.price-cur { font: 900 2.6rem/1 var(--serif); }
.price-for { margin-top: 1rem; padding-top: .8rem; border-top: 2px solid var(--ink); font: 700 1.3rem/1.3 var(--serif); }
.price-text { padding: 2rem; padding-inline-start: .5rem; }
.price-text h3 { font: 900 clamp(1.5rem, 3vw, 2rem)/1.2 var(--serif); }
.price-text p { margin-top: .7rem; font-size: 1.25rem; color: var(--ink-soft); max-width: 34rem; }
.price-incl { grid-column: 1 / -1; padding: 1.8rem 2rem 2rem; border-top: 2px solid var(--line); background: var(--paper); border-radius: 0 0 .85rem .85rem; }
.price-incl h3 { color: var(--green-deep); }
.price-incl ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: .8rem; }
.price-incl li { position: relative; padding: .8rem 0; padding-inline-start: 2.4rem; border-bottom: 1.5px solid var(--line); color: var(--ink-soft); }
.price-incl li:nth-last-child(-n+2) { border-bottom: 0; }
.price-incl li strong { display: block; color: var(--ink); }
.price-incl li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: .85rem;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  background: var(--green); color: #fff; border-radius: 50%; font-size: .95rem; font-weight: 700;
}

/* ---------- פרטיות ---------- */
.trust { background: var(--paper-2); border-block: 2.5px solid var(--ink); padding-block: clamp(3rem, 7vw, 5rem); }
.trust-in { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.trust li { position: relative; padding: .7rem 0; padding-inline-start: 2.4rem; font-size: 1.2rem; font-weight: 500; }
.trust li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: .75rem;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  background: var(--green); color: #fff; border-radius: 50%; font-size: .95rem; font-weight: 700;
}

/* ---------- סיום ---------- */
.end { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.end .btn { margin-top: 2rem; }

/* ---------- יצירת קשר: מודעה על לוח השעם ---------- */
.contact {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0 2px, transparent 3px) 0 0 / 22px 22px,
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.10) 0 2px, transparent 3px) 0 0 / 17px 17px,
    var(--cork);
  border-top: 2.5px solid var(--ink);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 4.5rem; /* שהסרגל העליון לא יסתיר את הכותרת */
}
.contact-card {
  position: relative;
  max-width: 44rem; margin-inline: auto;
  background: var(--wall);
  border: 2.5px solid var(--ink);
  box-shadow: 6px 7px 0 rgba(23,35,28,.35);
  padding: 3.2rem clamp(1.2rem, 5vw, 3rem) 2.6rem;
  text-align: center;
}
.contact-lead { font-size: 1.3rem; color: var(--ink-soft); margin-top: 1rem; }
.contact-form { margin-top: 2rem; text-align: start; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: .35rem; }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  display: block; width: 100%;
  min-height: 3.4rem; padding: .6rem .9rem;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: .6rem;
  font: 400 1.2rem/1.5 var(--sans);
}
html[dir='rtl'] .field input[dir='ltr'] { text-align: right; }
.field textarea { resize: vertical; }
.field [aria-invalid='true'] { border-color: var(--red); background: #fdeeec; }
.field-error { margin-top: .35rem; color: var(--red); font-weight: 700; font-size: 1.1rem; }
.field-hp { position: absolute; inset-inline-start: -200vw; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; margin-top: .4rem; cursor: pointer; }
.contact-form .btn:disabled { opacity: .6; cursor: default; }
.form-status { min-height: 1.9rem; margin-top: 1.2rem; font-size: 1.2rem; font-weight: 700; text-align: center; }
.form-status.is-error { color: var(--red); }
.contact-done { margin-top: 2rem; padding: 1.6rem 1.2rem; background: var(--green-soft); border: 2.5px solid var(--green-deep); border-radius: .6rem; }
.contact-done h3 { font: 900 1.7rem/1.25 var(--serif); }
.contact-done p { font-size: 1.25rem; margin-top: .4rem; }
.what { scroll-margin-top: 3rem; }

.foot { background: var(--ink); color: #dcd6c6; padding-block: 1.6rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: baseline; justify-content: space-between; }
.foot .brand-name { color: #fff; }

/* ---------- מסכים צרים ---------- */
@media (max-width: 60rem) {
  .btn-contact { display: none; } /* במסכים צרים הכפתור נמצא בפתיח */
  .hero-in, .easy-in, .trust-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-text { padding-bottom: 0; }
  .building { max-height: 22rem; margin-inline: auto; }
  .notes { grid-template-columns: 1fr 1fr; }
  .intercom { grid-template-columns: 1fr; }
  .intercom li, .intercom li:nth-child(odd) { border-inline-end: 0; border-bottom: 2px solid var(--line); }
  .intercom li:last-child { border-bottom: 0; }
  .nums-list { grid-template-columns: 1fr; }
  .nums-list li, .nums-list li:first-child, .nums-list li:last-child { padding: 1.6rem 0; border-inline-start: 0; border-top: 2px solid rgba(255,255,255,.25); }
  .nums-list li:first-child { border-top: 0; padding-top: 0; }
  .price-card { grid-template-columns: 1fr; }
  .price-tag { margin: 2rem auto 0; width: min(100% - 3rem, 22rem); }
  .price-text { padding: 1.6rem 1.5rem; text-align: center; }
  .price-text p { margin-inline: auto; }
  .price-incl { padding-inline: 1.5rem; }
  .price-incl ul { grid-template-columns: 1fr; }
  .price-incl li:nth-last-child(2) { border-bottom: 1.5px solid var(--line); }
}
@media (max-width: 40rem) {
  .textsize-label { display: none; }
  .brand-name { font-size: 1.25rem; }
  .top-tools { gap: .5rem; }
  .textsize button { width: 2.5rem; height: 2.5rem; }
  .btn-login { padding-inline: .9rem; white-space: nowrap; }
  /* באנגלית הכותרת ארוכה יותר, ולכן קטנה יותר במסכים צרים. */
  html[lang='en'] h1 { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  html[lang='en'] h2 { font-size: 1.6rem; }
  .lang { padding-inline: .2rem; }
  .notes { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-cta .btn { width: 100%; }
  .btn-huge { width: 100%; padding-inline: 1rem; }
}
@media (max-width: 30rem) {
  .top-in { flex-wrap: wrap; }
  /* שורה ראשונה: הלוגו ובחירת השפה. שורה שנייה: גודל הטקסט והכניסה. */
  .top-tools { display: contents; }
  .lang { order: 1; }
  .textsize, .btn-login { order: 2; }
}
