/* הצעות מחיר בקליק. Phone first, RTL. One main colour (blue), big targets, plain words: built for people who are not technical.
   The quote "paper" is a document, so it stays white in dark mode and takes the BUSINESS colour (--biz), not the app colour. */
@font-face { font-family: "Noto Sans Hebrew"; font-weight: 200 900; font-display: swap; src: url("fonts/noto-hebrew-var.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Noto Sans Hebrew"; font-weight: 200 900; font-display: swap; src: url("fonts/noto-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 900; font-display: swap; src: url("fonts/poppins-900.woff2") format("woff2"); unicode-range: U+0000-00FF; }

:root {
  --main: #0b5fff; --main-ink: #ffffff; --main-soft: #eaf1ff; --main-line: #c9dafc;
  --bg: #f9fbff; --card: #ffffff; --ink: #0d0d0d; --mute: #556070; --line: #dfe5f0;
  --ok: #0f7a41; --warn-bg: #fff4d6; --warn-ink: #6b4a00; --warn-line: #f1cf75; --bad: #b3261e;
  --wa: #128c4b; --shadow: 0 10px 30px rgba(18, 40, 90, .08);
  --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans Hebrew", system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 18px; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--main); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--main); color: var(--main-ink); padding: 10px 16px; border-radius: 10px; z-index: 50; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* top */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand b { color: var(--main); font-weight: 900; }
.demo-tag { font-size: 13px; font-weight: 700; color: var(--main); background: var(--main-soft); border: 1px solid var(--main-line); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

/* write stage */
.write { padding: 30px 0 40px; }
h1 { font-size: clamp(22px, 5.4vw, 35px); line-height: 1.22; font-weight: 900; margin: 0 0 12px; letter-spacing: -.01em; }
h1 span { color: var(--main); display: block; font-size: 1.32em; line-height: 1.1; margin-bottom: 6px; }
.lead { font-size: clamp(17px, 4.4vw, 20px); color: var(--mute); margin: 0 0 20px; max-width: 34em; }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--main); color: var(--main-ink); display: grid; place-items: center; font-weight: 900; font-size: 15px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.lbl { display: block; font-weight: 800; font-size: 19px; margin-bottom: 8px; }
textarea { display: block; width: 100%; min-height: 150px; resize: vertical; border: 2px solid var(--line); border-radius: 14px; padding: 14px; font-size: 18px; line-height: 1.5; background: var(--bg); color: var(--ink); }
textarea::placeholder { color: var(--mute); opacity: .85; }
textarea:focus { outline: none; border-color: var(--main); background: var(--card); }
.hint { margin: 8px 2px 14px; font-size: 15px; color: var(--mute); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.mic { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--main); background: var(--card); color: var(--main); font-weight: 800; }
.mic svg { width: 22px; height: 22px; }
.mic[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.or { font-size: 15px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--main-line); background: var(--main-soft); color: var(--ink); font-weight: 700; font-size: 15px; }
.err { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); font-weight: 700; border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.go { width: 100%; min-height: 62px; border: 0; border-radius: 16px; background: var(--main); color: var(--main-ink); font-size: clamp(17px, 4.9vw, 21px); font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 20px color-mix(in srgb, var(--main) 35%, transparent); transition: transform .12s ease, filter .12s ease; }
.go svg { width: 24px; height: 24px; }
.go:hover { filter: brightness(1.07); }
.go:active { transform: translateY(1px); }
.trust { list-style: none; margin: 22px 2px 0; padding: 0; display: grid; gap: 14px; font-size: 16px; font-weight: 500; color: #0d0d0d; }
.trust li { position: relative; padding-right: 36px; }
.trust li::before { content: ""; position: absolute; right: 4px; top: .38em; width: 15px; height: 8px; border-left: 3px solid #0a9d4a; border-bottom: 3px solid #0a9d4a; transform: rotate(-45deg); }

@keyframes spin { to { transform: rotate(360deg); } }

/* the questions open inside the same card, under the text (one screen, Liav S153) */
.more { margin: 4px 0 16px; padding: 16px; border-radius: 16px; background: var(--main-soft); border: 1px solid var(--main-line); }
.more h2 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.25; }
.more h2:focus { outline: none; }
.more-sub { margin: 2px 0 12px; font-size: 15px; color: var(--mute); }
.ask { padding: 12px 0; border-top: 1px solid var(--main-line); display: grid; gap: 8px; }
.ask-t { font-weight: 800; font-size: 17px; }
.fld { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.fld label { grid-column: 1 / -1; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.fld input { width: 100%; min-height: 52px; border: 2px solid var(--main-line); border-radius: 14px; padding: 0 14px; font-size: 20px; background: #fff; color: var(--ink); }
.fld input:focus { outline: none; border-color: var(--main); }
.fld-u { font-weight: 700; color: var(--mute); min-width: 44px; }
@media (min-width: 640px) { .ask { grid-template-columns: 1fr 1fr; } .ask-t { grid-column: 1 / -1; } .ask.one { grid-template-columns: 1fr; } }
.go:disabled { cursor: progress; filter: saturate(.8) brightness(.96); }
.go.is-busy svg { display: none; }
.go.is-busy::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }

/* result */
.result { padding: 26px 0 150px; }
.res-head h2 { font-size: clamp(26px, 6.5vw, 36px); font-weight: 900; margin: 0 0 4px; }
.res-head p { margin: 0 0 16px; color: var(--mute); }
.paper-frame { border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); background: #f9fbff; }
#paper { width: 794px; }
#paper .paper, .sample-doc .paper { min-height: 0; } /* on screen the document is as tall as its content; only the PDF copy is a full A4 page */
.est-note { margin: 0 2px 14px; padding: 10px 14px; border-radius: 12px; background: var(--main-soft); border: 1px solid var(--main-line); font-size: 15px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 2px 14px; font-weight: 700; font-size: 16px; }
.swatches span { flex: 0 0 100%; }
@media (min-width: 640px) { .swatches span { flex: none; margin-left: 4px; } }
.sw { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 2px var(--line); padding: 0; transition: transform .12s ease; }
.sw:hover { transform: scale(1.06); }
.sw[aria-checked="true"] { box-shadow: 0 0 0 3px var(--c); }
.sw[aria-checked="true"]::after { content: ""; position: absolute; left: 50%; top: 46%; width: 13px; height: 7px; margin: -5px 0 0 -7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.zoom-note { margin: 8px 2px 0; font-size: 14px; color: var(--mute); text-align: center; }
@media (min-width: 640px) { .zoom-note { display: none; } }

/* the quote document. Theme taken from the kickoff document that Liav designed in Figma: pale blue-white page, light text weight with heavy
   headings, a marker highlight, big faint Poppins numbers, thin lines, soft arcs. --biz is the BUSINESS colour; --biz-mark / --biz-faint / --biz-line
   are set in app.js as plain rgba values (html2canvas, which makes the PDF, cannot read color-mix or background-clip:text, so neither is used here). */
.paper { --biz: #0b5fff; --biz-mark: rgba(11,95,255,.3); --biz-faint: rgba(11,95,255,.1); --biz-line: rgba(11,95,255,.16); --biz-num: rgba(11,95,255,.62); --biz-arc: rgba(11,95,255,.07);
  position: relative; overflow: hidden; display: flex; flex-direction: column; background: #f9fbff; color: #0d0d0d; padding: 32px 20px 22px; font-size: 15.5px; line-height: 1.6; font-weight: 300; }
.paper * { box-sizing: border-box; }
.paper b { font-weight: 700; }
.p-arc { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 2px solid var(--biz-arc); pointer-events: none; }
.p-arc.a { top: -95px; left: -70px; }
.p-arc.b { top: 230px; right: -150px; width: 240px; height: 240px; }
.paper > *:not(.p-arc) { position: relative; }
.paper > .p-bar { position: absolute; top: 0; left: 0; right: 0; height: 7px; background: var(--biz); }
.p-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.p-logo { display: flex; align-items: center; gap: 14px; }
.p-mark { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--biz); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 22px; box-shadow: 0 0 0 4px #f9fbff, 0 0 0 6px var(--biz-mark); }
.p-logo img { flex: none; width: 62px; height: 62px; object-fit: contain; }
.p-name { font-weight: 900; font-size: 21px; line-height: 1.15; }
.p-tag { color: #4b5563; font-size: 13.5px; }
.p-contact { text-align: left; font-size: 13px; color: #374151; line-height: 1.65; }
.p-hero { text-align: center; margin: 26px 0 20px; }
.p-hero h3 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 900; color: #0d0d0d; }
.p-job { font-size: 25px; line-height: 1.25; font-weight: 800; color: var(--biz); margin-top: 2px; }
.p-to { font-size: 26px; font-weight: 300; margin-top: 8px; }
.p-place { font-size: 17px; font-weight: 300; color: #4b5563; margin-top: 2px; }
.p-to input { display: block; width: min(100%, 300px); margin: 6px auto 0; text-align: center; border: 1.5px dashed #a9b8d6; border-radius: 12px; padding: 9px 10px; background: #fff; color: #0d0d0d; font: inherit; font-size: 17px; font-weight: 400; }
.p-meta { --g: clamp(18px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; column-gap: var(--g); align-items: start; margin: 4px 0 24px; }
.p-meta div { position: relative; text-align: center; font-size: 13.5px; color: #4b5563; }
.p-meta div:first-child { justify-self: end; }
.p-meta div:last-child { justify-self: start; }
.p-meta div + div::before { content: ""; position: absolute; right: calc(var(--g) / -2 - 2px); top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--biz-num); }
.p-meta b { display: block; color: #0d0d0d; font-size: 15.5px; font-weight: 700; direction: ltr; }
@media (min-width: 640px) { .p-meta div { font-size: 15px; } .p-meta b { font-size: 18px; } }

.p-items { width: 100%; border-collapse: collapse; }
.p-items th { font-weight: 700; font-size: 13px; color: #0d0d0d; padding: 10px 10px; text-align: right; background: var(--biz-faint); }
.p-items th:first-child { border-radius: 0 12px 12px 0; }
.p-items th:last-child { border-radius: 12px 0 0 12px; }
.p-items td { padding: 12px 10px; border-bottom: 1px solid var(--biz-line); vertical-align: middle; }
.p-items tr:last-child td { border-bottom: 0; }
.p-items .n { width: 44px; font-family: "Poppins", sans-serif; font-weight: 900; font-size: 26px; line-height: 1; color: var(--biz-num); direction: ltr; text-align: center; }
.p-items .desc { font-weight: 400; }
.p-items .inc { list-style: none; margin: 6px 0 2px; padding: 0; font-size: .92em; font-weight: 300; color: #374151; }
.p-items .inc li { position: relative; padding-right: 14px; margin-bottom: 2px; }
.p-items .inc li::before { content: ""; position: absolute; right: 0; top: .66em; width: 5px; height: 5px; border-radius: 50%; background: var(--biz-num); }
.p-items .num, .p-items th.num { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-items .sum { font-weight: 800; }
.cur { direction: ltr; unicode-bidi: isolate; }
.p-items input { width: 86px; max-width: 100%; text-align: center; border: 1.5px solid #cdd8ee; border-radius: 10px; padding: 8px 6px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: #0d0d0d; font-variant-numeric: tabular-nums; }
.p-items input:focus { outline: 3px solid var(--biz-mark); border-color: var(--biz); }
.p-items .miss input { border-color: #e0a800; background: #fff8e1; }
.p-items .unit { color: #4b5563; font-size: 13.5px; }
.badge { display: inline-block; margin-right: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff3cd; color: #6b4a00; border: 1px solid #f1cf75; white-space: nowrap; }

.p-after { display: grid; gap: 18px; margin-top: 18px; align-items: start; }
.p-total { background: #fff; border: 1px solid var(--biz-line); border-radius: 18px; padding: 14px 18px 16px; font-size: 15.5px; }
.p-total div { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.p-total .grand { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--biz-line); font-weight: 700; font-size: 17px; }
.p-total .grand .cur { font-weight: 900; font-size: 30px; line-height: 1.1; }
.p-total .grand.first { margin-top: 0; padding-top: 2px; border-top: 0; }
.p-total .vat-in { flex-direction: column; align-items: flex-start; gap: 1px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--biz-line); font-size: 13.5px; color: #4b5563; }
.p-total .vat-in span:first-child { font-weight: 700; color: #0d0d0d; }
.mark { position: relative; z-index: 0; display: inline-block; }
.mark::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: .1em; height: .42em; background: var(--biz-mark); z-index: -1; border-radius: 2px; }
.p-terms { display: grid; gap: 18px; margin-top: 20px; padding: 18px; background: #fff; border: 1px solid var(--biz-line); border-radius: 18px; }
.p-box h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; color: #0d0d0d; }
.p-box ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: #1f2937; }
.p-box li { margin-bottom: 4px; position: relative; padding-right: 15px; }
.p-box li::before { content: ""; position: absolute; right: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--biz); }
.p-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 76px; font-size: 13.5px; color: #4b5563; }
.p-sign div { border-top: 1.5px solid #0d0d0d; padding-top: 6px; }
.p-foot { padding-top: 22px; text-align: center; }
.p-thanks { font-weight: 800; font-size: 16px; color: var(--biz); }
.p-legal { margin-top: 4px; font-size: 12px; color: #4b5563; }

@media (min-width: 640px) {
  .paper { padding: 46px 44px 28px; }
  .p-hero h3 { font-size: 40px; }
  .p-after { grid-template-columns: 1fr 320px; gap: 30px; }
  .p-terms { grid-template-columns: 1fr 1.3fr; gap: 30px; padding: 22px 24px; }
  .steps { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; }
  .card { padding: 24px; }
}
.sample { display: none; }
@media (min-width: 1024px) {
  .wrap { max-width: 1180px; }
  .write { padding: 48px 0 60px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 44px; align-items: start; }
  .result { max-width: 900px; margin: 0 auto; }
  .bar-in, .foot-in { max-width: 900px; }
  .sample:not([hidden]) { display: block; position: sticky; top: 24px; }
  .sample-tag { margin: 0 0 10px; font-size: 15px; color: var(--mute); }
  .sample-tag b { display: inline-block; margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: var(--main); color: #fff; font-weight: 800; font-size: 14px; }
  .sample-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(18, 40, 90, .14); background: #f9fbff; }
  .sample-doc { width: 794px; zoom: .5516; pointer-events: none; user-select: none; }
  h1 { font-size: clamp(22px, 2.35vw, 31px); }
}

/* fixed A4 copy used only to make the PDF */
#export-root { position: fixed; top: 0; left: -10000px; width: 794px; pointer-events: none; }
.a4 .paper { width: 794px; min-height: 1123px; padding: 36px 52px 20px; font-size: 14px; line-height: 1.5; }
.a4 .p-mark { width: 50px; height: 50px; font-size: 19px; }
.a4 .p-hero { margin: 6px 0 12px; }
.a4 .p-hero h3 { font-size: 32px; }
.a4 .p-job { font-size: 21px; }
.a4 .p-to { font-size: 21px; margin-top: 4px; }
.a4 .p-place { font-size: 15px; }
.a4 .p-meta { --g: 72px; margin: 2px 0 18px; }
.a4 .p-meta div { font-size: 13.5px; }
.a4 .p-meta b { font-size: 16px; }
.a4 .p-items th { padding: 8px 10px; }
.a4 .p-items td { padding: 7px 10px; }
.a4 .p-items .n { font-size: 20px; }
.a4 .p-after { grid-template-columns: 1fr 300px; gap: 30px; margin-top: 14px; }
.a4 .p-total { font-size: 14px; padding: 12px 16px 14px; }
.a4 .p-total div { padding: 2px 0; }
.a4 .p-total .grand { margin-top: 6px; padding-top: 9px; }
.a4 .p-total .grand .cur { font-size: 26px; }
.a4 .p-terms { grid-template-columns: 1fr 1.3fr; gap: 30px; margin-top: 12px; padding: 13px 20px; }
.a4 .p-box h4 { font-size: 15px; margin-bottom: 6px; }
.a4 .p-box ul { font-size: 12.5px; }
.a4 .p-box li { margin-bottom: 2px; }
.a4 .p-sign { margin-top: 66px; }
.a4 .p-foot { padding-top: 12px; }

/* own-business call to action */
.own { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-align: center; }
.own h3 { margin: 0 0 4px; font-size: 21px; font-weight: 900; }
.own p { margin: 0 0 14px; color: var(--mute); }
.wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 14px; background: var(--wa); color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; }
.wa svg { width: 24px; height: 24px; }

/* bottom action bar */
.bar { position: fixed; inset-inline: 0; bottom: 0; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); z-index: 20; }
.bar-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bar button { min-height: 52px; border-radius: 14px; font-weight: 800; font-size: 17px; border: 2px solid transparent; }
.b-main { grid-column: 1 / -1; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 19px !important; }
.b-main svg { width: 22px; height: 22px; }
.b-sec { background: var(--main-soft); color: var(--ink); border-color: var(--main-line) !important; }
.b-ghost { background: transparent; color: var(--mute); border-color: var(--line) !important; }
.bar button:disabled { opacity: .6; cursor: progress; }
@media (min-width: 640px) { .bar-in { grid-template-columns: 2fr 1fr 1fr; } .b-main { grid-column: auto; } }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--card); padding: 18px 0 22px; font-size: 14px; color: var(--mute); }
.foot-in { display: grid; gap: 10px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--main); min-height: 32px; display: inline-flex; align-items: center; }
body.has-bar .foot { padding-bottom: 150px; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; transition: none !important; scroll-behavior: auto !important; }  }
