/* ינוב מערכות חשמל · "מהנייר לקיר": גיליונות שרטוט, שרטוט שהופך לתמונה. design.md הוא המקור. */
:root {
  --bg: #EDE7E1;
  --surface: #F7F4F0;
  --ink: #111E2E;
  --muted: #4A5566;
  --primary: #111E2E;
  --primary-ink: #EDE7E1;
  --soft: #E2D8CE;
  --accent: #CC8E65;
  --cable: #256451;
  --line: #C9BFB5;
  --focus: #111E2E;
  --radius: 0;
  --k-btn-radius: 0;
  --k-outline-ink: #111E2E;
  --font-head: "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --gutter: 8px;
  --paper: linear-gradient(rgb(17 30 46 / .06) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgb(17 30 46 / .06) 1px, transparent 1px) 0 0 / 24px 24px, var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--soft); color: var(--ink); font-family: var(--font-head); font-size: 17px; line-height: 1.7; overflow-x: clip; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: 36px; line-height: 1.12; }
h2 { font-size: 28px; line-height: 1.2; margin-bottom: 22px; }
h3 { font-size: 19px; line-height: 1.3; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.foot :focus-visible { outline-color: var(--accent); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.demo-banner { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 8px 16px; background: var(--ink); color: var(--bg); font-size: 14px; line-height: 1.4; text-align: center; }
.dot { color: var(--accent); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.top__inner { max-width: 1240px; margin-inline: auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 17px; min-height: 44px; }
.brand img { width: 52px; height: auto; }
.top__nav { display: none; }
.top__wa { margin-inline-start: auto; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--ink); color: var(--ink); }
.top__wa svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sheets: double frame, squared paper, title block ---------- */
.desk { padding: 16px var(--gutter) 24px; display: grid; gap: 24px; max-width: 1240px; margin-inline: auto; }
.sheet { position: relative; background: var(--paper); padding: 34px 26px 110px; }
.sheet::before, .sheet::after { content: ""; position: absolute; pointer-events: none; }
.sheet::before { inset: 0; border: 1.5px solid var(--ink); }
.sheet::after { inset: 7.5px; border: .5px solid var(--ink); }
.tb { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 180px; display: grid; border: 1px solid var(--ink); background: var(--bg); font-weight: 500; font-size: 11px; line-height: 1.3; }
.tb__row { padding: 3px 8px; border-top: 1px solid var(--ink); white-space: nowrap; }
.tb__row:first-child { border-top: 0; }
.tb__brand { display: flex; align-items: center; gap: 6px; }
.tb__brand img { width: 28px; }

/* ---------- 01 Hero ---------- */
.hero__grid { display: grid; gap: 28px; }
.eyebrow { font-weight: 500; font-size: 15px; line-height: 1.3; margin-bottom: 12px; }
.hero__lead { margin-top: 14px; color: var(--muted); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero__actions .k-btn { width: 100%; }
.main-btn { --k-btn-face: #111E2E; --k-border-ink: #EDE7E1; --k-btn-bg: #111E2E; --k-btn-accent: #CC8E65; }
.rating { margin-top: 14px; font-size: 15px; color: var(--muted); }
.frame { position: relative; margin: 0; aspect-ratio: 3 / 4; border: 1.5px solid var(--ink); background: var(--paper); }
.frame__photo, .frame__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { position: absolute; bottom: 8px; inset-inline-start: 8px; background: var(--bg); padding: 2px 8px; font-size: 14px; font-weight: 500; }
.plan { position: absolute; inset: 0; width: 100%; height: 100%; display: none; fill: none; stroke: var(--ink); z-index: 2; }
.plan path, .plan rect:not(.cv) { stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.plan .cable path { stroke-width: 1px; }
.plan text { fill: var(--ink); stroke: none; font-family: var(--font-head); font-size: 36px; font-weight: 500; }
.cv { fill: var(--bg); stroke: none; transform-box: fill-box; display: none; }
.cv-x { transform-origin: left center; }
.cv-y { transform-origin: center bottom; }
.has-plan .plan { display: block; opacity: 0; background: var(--paper); }
.has-plan.show-plan .plan { opacity: 1; }
.toggle { display: inline-flex; margin-top: 12px; border: 1.5px solid var(--ink); }
.toggle[hidden] { display: none; }
.toggle button, .mini-toggle button { font: inherit; font-weight: 500; font-size: 14px; min-height: 44px; padding: 0 16px; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.toggle button + button, .mini-toggle button + button { border-inline-start: 1.5px solid var(--ink); }
.toggle button[aria-pressed="true"], .mini-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cable); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- 02 Method ---------- */
.method { position: relative; }
.dim { display: none; }
.method__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.method__list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.method__n { grid-row: span 2; width: 34px; height: 34px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 600; }
.method__list p { color: var(--muted); }
.mark-quote { margin: 28px 0 0; padding-inline-start: 14px; border-inline-start: 1.5px solid var(--accent); }
.mark-quote p { font-size: 18px; line-height: 1.6; text-align: start; }
blockquote footer { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- 03 Services ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.card { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 12px; }
.media { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--ink); overflow: hidden; }
.media__plan { position: absolute; inset: 10%; width: 80%; height: 80%; fill: none; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; display: none; }
.media__plan path, .media__plan rect { vector-effect: non-scaling-stroke; }
.media--plan-only .media__plan { display: block; }
.media__photo, .media__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.has-plan .media__plan { display: block; }
.media.has-plan .media__photo { opacity: 0; }
.media.has-plan.is-built .media__photo { opacity: 1; }
.mini-toggle { display: inline-flex; justify-self: start; border: 1.5px solid var(--ink); }
.mini-toggle[hidden] { display: none; }

/* ---------- 04 EV ---------- */
.ev { display: grid; gap: 24px; }
.evplan { width: 100%; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.evplan path, .evplan rect:not(.cv), .evplan circle { stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.evplan .cv { fill: var(--bg); }
.ev p { color: var(--muted); }
.ev__plan { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 12px; }

/* Annotation balloons with leader lines */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.notes--short { margin-top: 22px; }
.notes li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 0; }
.bal { width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; line-height: 1; background: var(--bg); position: relative; z-index: 1; }
.lead { position: absolute; top: 13px; inset-inline-start: 28px; width: 48px; height: 1px; background: var(--ink); transform-origin: right; }
.lead::after { content: ""; position: absolute; left: -2px; top: -1.5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.notes blockquote { margin: 0; padding-inline-start: 62px; }
.notes blockquote p[lang="en"] { text-align: start; }
.notes__more { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.k-link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- 05 Test, 06 Eden ---------- */
.test, .eden { display: grid; gap: 22px; }
.test p, .eden > div > p { color: var(--muted); }
.test__fig { margin: 0; max-width: 380px; }
.test__fig img, .eden img { width: 100%; }
.test__fig figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.eden__pics { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: end; }
.eden__a, .eden__b > div { border: 1px solid var(--ink); overflow: hidden; }
.eden__b { margin-bottom: 30px; }
.eden__quote { margin: 18px 0 0; padding-inline-start: 14px; border-inline-start: 1.5px solid var(--accent); }

/* ---------- Big title block (the call to action) ---------- */
.bigtb { background: var(--bg); border: 3px solid var(--ink); padding: 0; display: grid; }
.bigtb h2 { margin: 0; padding: 18px 18px; border-bottom: 1.5px solid var(--ink); }
.bigtb__fields { margin: 0; display: grid; }
.bigtb__fields > div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--ink); }
.bigtb__fields dt { padding: 10px 18px; font-weight: 500; font-size: 15px; border-inline-end: 1px solid var(--ink); }
.bigtb__fields dd { margin: 0; padding: 10px 18px; }
.bigtb__fields a { display: inline-block; min-height: 44px; padding-block: 8px; margin-block: -10px; font-weight: 600; }
.bigtb__actions { display: flex; flex-direction: column; gap: 12px; padding: 18px; }

.foot { background: var(--ink); color: var(--bg); padding: 28px 16px 24px; font-size: 15px; line-height: 1.5; }
.foot__inner { max-width: 1240px; margin-inline: auto; display: grid; gap: 8px; }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__brand img { width: 56px; }
.foot a { color: var(--accent); display: inline-block; min-height: 44px; padding-block: 11px; }
.dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1.5px solid var(--ink); transition: transform 300ms var(--k-ease), opacity 300ms var(--k-ease); }
.dock > * { flex: 1 1 0; }
.dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
body { padding-bottom: 76px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The hero plan draws itself: paper-coloured covers shrink off each group of lines. */
  html.intro .frame:not(.is-settled) .plan { display: block; animation: fade-out 400ms ease 2800ms both; }
  html.intro .frame:not(.is-settled) .frame__photo { animation: fade-in 600ms ease 2200ms both; }
  html.intro .frame:not(.is-settled) .cv { display: block; animation: shrink-x 400ms var(--k-ease-inout) both; }
  html.intro .frame:not(.is-settled) .cv-y { animation-name: shrink-y; }
  html.intro .frame .frame-cv { animation-delay: 200ms; }
  html.intro .frame .rail-cv { animation-duration: 240ms; }
  html.intro .frame .rail-cv[data-i="0"] { animation-delay: 600ms; }
  html.intro .frame .rail-cv[data-i="1"] { animation-delay: 720ms; }
  html.intro .frame .rail-cv[data-i="2"] { animation-delay: 840ms; }
  html.intro .frame .rail-cv[data-i="3"] { animation-delay: 960ms; }
  html.intro .frame .rail-cv[data-i="4"] { animation-delay: 1080ms; }
  html.intro .frame .row-cv { animation-duration: 300ms; }
  html.intro .frame .row-cv[data-i="0"] { animation-delay: 900ms; }
  html.intro .frame .row-cv[data-i="1"] { animation-delay: 980ms; }
  html.intro .frame .row-cv[data-i="2"] { animation-delay: 1060ms; }
  html.intro .frame .row-cv[data-i="3"] { animation-delay: 1140ms; }
  html.intro .frame .row-cv[data-i="4"] { animation-delay: 1220ms; }
  html.intro .frame .cable-cv { animation-duration: 320ms; }
  html.intro .frame .cable-cv[data-i="0"] { animation-delay: 1200ms; }
  html.intro .frame .cable-cv[data-i="1"] { animation-delay: 1260ms; }
  html.intro .frame .cable-cv[data-i="2"] { animation-delay: 1320ms; }
  html.intro .frame .cable-cv[data-i="3"] { animation-delay: 1380ms; }
  html.intro .frame .cable-cv[data-i="4"] { animation-delay: 1440ms; }
  html.intro .frame .cable-cv[data-i="5"] { animation-delay: 1500ms; }
  html.intro .frame .cable-cv[data-i="6"] { animation-delay: 1560ms; }
  html.intro .frame .cable-cv[data-i="7"] { animation-delay: 1620ms; }
  html.intro .frame:not(.is-settled) .dims { animation: fade-in 300ms ease 1700ms both; }
  .has-plan .plan { transition: opacity 300ms ease; }
  .toggle.is-new { animation: rise 300ms var(--k-ease-out) both; }
  .media.has-plan .media__photo { transition: opacity 500ms ease; }

  /* Sheets: the double frame settles in when the sheet arrives. */
  .k-motion .sheet[data-reveal]::before, .k-motion .sheet[data-reveal]::after { transform: scale(.985); opacity: 0; transition: transform 600ms var(--k-ease-out), opacity 600ms; }
  .k-motion .sheet.is-in::before, .k-motion .sheet.is-in::after { transform: none; opacity: 1; }
  .k-motion .dim__line { transform: scaleX(0); transition: transform 700ms var(--k-ease-out) 200ms; }
  .k-motion .sheet.is-in .dim__line { transform: none; }
  .k-motion .notes li .lead { transform: scaleX(0); transition: transform 400ms var(--k-ease-out) 200ms; }
  .k-motion .notes li.is-in .lead { transform: none; }
  .k-motion .ev .cv { display: block; transition: transform 260ms var(--k-ease-inout); }
  .k-motion .ev .cv[data-i="1"] { transition-delay: 260ms; }
  .k-motion .ev .cv[data-i="2"] { transition-delay: 520ms; }
  .k-motion .sheet.is-in .ev .cv { transform: scaleX(0); }
}
@keyframes shrink-x { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes shrink-y { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Subpages ---------- */
body.subpage { background: var(--paper); padding-bottom: 0; }
.subpage__main { max-width: 760px; margin: 24px auto; padding: 40px 28px 56px; border: 1.5px solid var(--ink); background: var(--bg); }
.subpage__main h1 { margin-bottom: 18px; }
.subpage__main h2 { font-size: 22px; margin: 28px 0 10px; }
.subpage__main p, .subpage__main li { margin-bottom: 8px; }
.subpage__eyebrow { font-weight: 500; color: var(--muted); }
.subpage__back { display: inline-block; min-height: 44px; padding-block: 10px; font-weight: 600; }

/* ================= Desktop ================= */
@media (min-width: 1000px) {
  :root { --gutter: 24px; }
  body { font-size: 18px; }
  h1 { font-size: 60px; }
  h2 { font-size: 40px; margin-bottom: 32px; }
  h3 { font-size: 21px; }
  .top__inner { padding-inline: 24px; }
  .top__nav { display: flex; gap: 6px; margin-inline-start: auto; }
  .top__nav a { text-decoration: none; font-weight: 500; padding: 10px 14px; }
  .top__nav a:hover { background: var(--soft); }
  .top__wa { margin-inline-start: 8px; }
  .sheet { padding: 56px 56px 120px; }
  .tb { width: 240px; font-size: 12px; bottom: 18px; inset-inline-end: 18px; }
  .tb__brand img { width: 34px; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .hero__text { grid-column: 1 / span 5; padding-top: 40px; }
  .hero__fig { grid-column: 7 / span 6; max-width: 520px; }
  .hero__actions { flex-direction: row; }
  .hero__actions .k-btn { width: auto; }
  .eyebrow { font-size: 17px; }
  .dim { display: block; height: 24px; position: relative; margin-bottom: 18px; }
  .dim__line { position: absolute; inset-inline: 0; top: 11px; height: 1px; background: var(--ink); transform-origin: right; }
  .dim::before, .dim::after { content: ""; position: absolute; top: 2px; width: 1px; height: 20px; background: var(--ink); }
  .dim::before { right: 0; }
  .dim::after { left: 0; }
  .method__list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .mark-quote { max-width: 60ch; }
  .mark-quote p { font-size: 20px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ev { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .test { grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
  .eden { grid-template-columns: 460px 1fr; gap: 48px; align-items: center; }
  .notes { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
  .lead { width: 90px; }
  .notes blockquote { padding-inline-start: 104px; }
  .notes li:nth-child(even) .lead { width: 60px; }
  .notes li:nth-child(even) blockquote { padding-inline-start: 74px; }
  .bigtb { width: calc(8 / 12 * 100%); margin-inline-start: auto; }
  .bigtb h2 { font-size: 34px; }
  .bigtb__fields > div { grid-template-columns: 180px 1fr; }
  .bigtb__actions { flex-direction: row; }
  .foot__inner { grid-template-columns: auto auto auto; justify-content: space-between; align-items: center; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}
