/* Kepkon: blueprint sheet. Shared by / (EN) and /he/ (RTL); logical properties keep both directions correct. */
:root {
  --sheet: #0f1b33;
  --sheet-2: #13234a;
  --sheet-3: #182b57;
  --line: #e9edf7;
  --line-2: #c3cbe0;
  --line-3: #8e9abb;
  --dim: #8d9bd6;
  --red: #ffb547;
  --grid: rgb(233 237 247 / .055);
  --grid-major: rgb(233 237 247 / .09);
  --display: "Montserrat", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1320px;
  color-scheme: dark;
}
:lang(he) { --display: "Rubik", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0 }
html { scroll-behavior: smooth; scroll-padding-top: 88px }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body {
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  color: var(--line);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--dim); color: var(--sheet) }
::-webkit-scrollbar { width: 12px } ::-webkit-scrollbar-track { background: var(--sheet) }
::-webkit-scrollbar-thumb { background: var(--sheet-3); border: 3px solid var(--sheet); border-radius: 8px }
html { scrollbar-color: var(--sheet-3) var(--sheet) }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px }
:focus-visible { outline: 2px solid var(--dim); outline-offset: 3px; border-radius: 4px }
img, svg { display: block; max-width: 100% }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter) }
.skip { position: absolute; inset-inline-start: -9999px } .skip:focus { inset-inline-start: 16px; top: 16px; z-index: 99; background: var(--line); color: var(--sheet); padding: 8px 14px; border-radius: 6px }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(15 27 51 / .92); border-block-end: 1px solid rgb(233 237 247 / .12) }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgb(15 27 51 / .78); backdrop-filter: blur(10px) } }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px }
.logo { display: inline-flex; align-items: center; gap: .04em; text-decoration: none; direction: ltr; font: 800 24px/1 "Montserrat", sans-serif; letter-spacing: .02em; color: var(--line) }
.logo svg { height: .72em; width: auto }
.nav ul { display: flex; gap: 24px; list-style: none; padding: 0; margin-inline-start: auto; font-size: 15px }
.nav ul a { text-decoration: none; color: var(--line-2) } .nav ul a:hover { color: var(--line) }
.lang { font-size: 14px; color: var(--line-2); text-decoration: none; border: 1px solid rgb(233 237 247 / .25); padding: 4px 12px; border-radius: 8px }
.lang:hover { border-color: var(--line); color: var(--line) }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--display); padding: 16px 24px; border-radius: 8px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s }
.btn-primary { background: var(--line); color: var(--sheet) }
.btn-primary:hover { background: var(--dim) }
.btn-ghost { border-color: rgb(233 237 247 / .4); color: var(--line); background: transparent }
.btn-ghost:hover { border-color: var(--line) }
.btn:active { transform: translateY(1px) }
.btn svg { width: 16px; height: 16px }
:dir(rtl) .btn .arrow { transform: scaleX(-1) }
.nav .btn { padding: 12px 16px; font-size: 14px }

/* hero sheet */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px) }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; letter-spacing: -.025em; line-height: 1.04 }
:lang(he) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.12 }
h1 { font-size: clamp(38px, 4.4vw, 64px) }
h1 em { font-style: normal; color: var(--dim) }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--line-2); margin-block: 24px 36px; max-width: 46ch }
.actions { display: flex; flex-wrap: wrap; gap: 12px }

/* the drawing */
.drawing { position: relative; border: 1.5px solid var(--line-2); outline: 1px solid rgb(233 237 247 / .3); outline-offset: 8px; margin: 8px; background: rgb(19 35 74 / .55); padding: 16px 16px 0;
 }
/* zone ticks along the sheet edge, like a drawing frame */
.drawing::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(233 237 247 / .45) 0 1px, transparent 1px 80px) top / 100% 6px no-repeat,
              repeating-linear-gradient(90deg, rgb(233 237 247 / .45) 0 1px, transparent 1px 80px) bottom / 100% 6px no-repeat }
.drawing-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; border-block-end: 1px solid rgb(233 237 247 / .18) }
.drawing-bar p { font-size: 13px; color: var(--line-3) }
.toggle { display: inline-flex; border: 1px solid rgb(233 237 247 / .3); border-radius: 4px; padding: 4px }
.toggle button { font: 500 13px/1 var(--body); color: var(--line-2); background: none; border: 0; padding: 8px 16px; border-radius: 2px; cursor: pointer }
.toggle button[aria-pressed="true"] { background: var(--line); color: var(--sheet) }
.drawing svg { width: 100%; height: auto }
.plan-mobile { display: none }
.drawing text { font-family: var(--body); fill: var(--line) }
.drawing .t-sm { font-size: 12px; fill: var(--line-3) }
.drawing .t-md { font-size: 15px; font-weight: 500 }
.drawing .t-red { fill: var(--red); font-size: 14px; font-weight: 500 }
.balloon circle { fill: var(--sheet); stroke: var(--dim); stroke-width: 1.4 }
.drawing .balloon text { fill: var(--dim); font-size: 12px; font-weight: 600 }

/* sketch -> blueprint states */
.bp-line { stroke: var(--line); stroke-width: 1.6; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.16, 1, .3, 1) }
.bp-dim { stroke: var(--dim); stroke-width: 1.2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.16, 1, .3, 1) }
.bp-fill { fill: rgb(141 155 214 / .1) ; opacity: 0; transition: opacity .6s ease-out }
.bp-text { opacity: 0; transition: opacity .5s ease-out }
.sk { transition: opacity .5s ease-out }
.sk-line { stroke: var(--line-2); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round }
.red { stroke: var(--red); stroke-width: 1.8; fill: none; stroke-linecap: round }
.bp-line, .bp-dim { opacity: 0; transition-property: stroke-dashoffset, opacity } /* hides the 1-unit dash cap left at offset 1 */
[data-state="blueprint"] .bp-line, [data-state="blueprint"] .bp-dim { stroke-dashoffset: 0; opacity: 1 }
[data-state="blueprint"] .bp-fill, [data-state="blueprint"] .bp-text { opacity: 1 }
[data-state="blueprint"] .sk { opacity: 0 }
/* stagger: each step (data-step) waits its turn */
[data-state="blueprint"] [data-step="1"] { transition-delay: .05s } [data-state="blueprint"] [data-step="2"] { transition-delay: .35s }
[data-state="blueprint"] [data-step="3"] { transition-delay: .65s } [data-state="blueprint"] [data-step="4"] { transition-delay: .95s }
[data-state="blueprint"] [data-step="5"] { transition-delay: 1.25s } [data-state="blueprint"] [data-step="6"] { transition-delay: 1.55s }
@media (prefers-reduced-motion: reduce) { .bp-line, .bp-dim, .bp-fill, .bp-text, .sk { transition: none !important } }

/* sections */
section { padding-block: clamp(56px, 7vw, 104px) }

h2 { font-size: clamp(32px, 3.8vw, 56px); max-width: 20ch }
.intro { color: var(--line-2); font-size: clamp(17px, 1.3vw, 19px); margin-block-start: 16px; max-width: 60ch }

/* hidden-parts legend */
.legend { margin-block-start: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); border-block-start: 1px solid rgb(233 237 247 / .3) }
.legend > div { display: grid; grid-template-columns: 44px 1fr; gap: 4px 20px; padding: 28px 24px 32px 0; border-block-end: 1px solid rgb(233 237 247 / .14) }
:dir(rtl) .legend > div { padding: 28px 0 32px 24px }
.balloon-mark { width: 36px; height: 36px; grid-row: span 3; border: 1.5px solid var(--dim); border-radius: 50%; display: grid; place-items: center; color: var(--dim); font: 600 16px/1 var(--display) }
.legend h3 { font-size: 22px; letter-spacing: -.01em }
.legend .q { color: var(--red); font-size: 15.5px }
.legend p:last-child { color: var(--line-2); font-size: 16px }

/* product schedule */
.schedule { margin-block-start: 48px; width: 100%; border-collapse: collapse; font-size: 16px }
.schedule caption { text-align: start; color: var(--line-3); font-size: 13px; padding-block-end: 12px }
.schedule th { text-align: start; font: 500 13px var(--body); color: var(--line-3); padding: 0 16px 12px; border-block-end: 1px solid rgb(233 237 247 / .4) }
.schedule td { padding: 24px 16px; border-block-end: 1px solid rgb(233 237 247 / .14); vertical-align: top; color: var(--line-2) }
.schedule th:first-child, .schedule td:first-child { padding-inline-start: 0 }
.schedule tbody tr { transition: background .2s } .schedule tbody tr:hover { background: rgb(141 155 214 / .06) }
.schedule .name { font: 600 24px/1.1 var(--display); color: var(--line); letter-spacing: -.015em; white-space: nowrap }
.schedule .name small { display: block; font: 400 13px var(--body); color: var(--line-3); margin-block-start: 8px; letter-spacing: 0 }
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; color: var(--line) }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fe0a8; }
.status.beta::before { background: var(--dim); }
.schedule a { color: var(--line); white-space: nowrap }

/* services: ruled note rows */
.services { margin-block-start: 40px }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding-block: 32px }
.svc h3 { font-size: 23px; letter-spacing: -.012em; grid-row: span 2 }
.svc p { color: var(--line-2); font-size: 16px; max-width: 60ch; grid-column: 2 }
.svc ul { grid-column: 2; margin-block-start: 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px }
.svc li { font-size: 13px; color: var(--line-2); border: 1px solid rgb(233 237 247 / .22); padding: 4px 8px; border-radius: 4px }
.svc.highlight { background: rgb(255 181 71 / .06); border: 1px solid rgb(255 181 71 / .45); padding-inline: 24px; margin-inline: -24px; margin-block-start: -1px }
.svc.highlight h3 { color: var(--red) }

.schedule .rev-letter { font: 600 24px/1.1 var(--display); color: var(--dim) }

/* title-block contact */
.title-block { margin-block-start: 48px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border: 1.5px solid var(--line) }
.tb-side { padding: 32px; border-inline-end: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 24px }
.tb-side dl { display: grid; gap: 18px }
.tb-side dt { font-size: 13px; color: var(--line-3) }
.tb-side dd { font-size: 17px }
.tb-side .logo { font-size: 30px }
form { display: grid; grid-template-columns: 1fr 1fr }
.field { border-block-end: 1px solid rgb(233 237 247 / .3); border-inline-end: 1px solid rgb(233 237 247 / .3); padding: 16px 24px; display: flex; flex-direction: column; gap: 6px }
.field:nth-child(2n) { border-inline-end: 0 }
.field.full { grid-column: 1 / -1; border-inline-end: 0 }
.field label { font-size: 13px; color: var(--line-3) }
.field input:not([type=radio]), .field textarea { font: 400 17px/1.5 var(--body); color: var(--line); background: transparent; border: 0; padding: 4px 0; caret-color: var(--dim); width: 100% }
fieldset.field { margin: 0; min-width: 0; border: 0; border-block-end: 1px solid rgb(233 237 247 / .3) }
.field legend { float: left; width: 100%; font-size: 13px; color: var(--line-3); padding: 0; margin-block-end: 12px } /* float keeps the legend inside the fieldset box */
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px }
.chip { position: relative; cursor: pointer }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 15px; color: var(--line-2); border: 1px solid rgb(141 155 214 / .45); border-radius: 4px; background: rgb(141 155 214 / .06); transition: background .15s, border-color .15s, color .15s }
.chip span::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--dim); border-radius: 2px; flex: none }
.chip:hover span { border-color: var(--dim); color: var(--line) }
.chip input:checked + span { background: var(--dim); border-color: var(--dim); color: var(--sheet); font-weight: 500 }
.chip input:checked + span::before { border-color: var(--sheet); background: var(--sheet); box-shadow: inset 0 0 0 2px var(--dim) }
.chip input:focus-visible + span { outline: 2px solid var(--line); outline-offset: 2px }
.field textarea { resize: vertical; min-height: 120px }
.field input::placeholder, .field textarea::placeholder { color: #7e8bad }
.field:focus-within { background: rgb(141 155 214 / .08) }
.field input:focus, .field textarea:focus { outline: none }
.field.invalid label { color: var(--red) }
.submit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; flex-wrap: wrap }
.submit p { font-size: 14px; color: var(--line-3); max-width: 46ch }
.form-msg { grid-column: 1 / -1; padding: 0 24px 16px; font-size: 15px }
.form-msg.ok { color: #5fe0a8 } .form-msg.err { color: var(--red) }
.btn[disabled] { opacity: .6; cursor: progress }

footer { border-block-start: 1px solid rgb(233 237 247 / .16); padding-block: 36px; color: var(--line-3); font-size: 14px }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between }
footer nav { display: flex; gap: 20px; flex-wrap: wrap }
footer a { text-decoration: none } footer a:hover { color: var(--line) }

/* responsive */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr }
}
@media (max-width: 860px) {
  .nav ul { display: none }
  .nav .lang { margin-inline-start: auto }
  .title-block { grid-template-columns: 1fr }
  .tb-side { border-inline-end: 0; border-block-end: 1.5px solid var(--line) }
  .schedule thead { display: none }
  .schedule, .schedule caption, .schedule tbody, .schedule tr, .schedule td { display: block }
  .schedule tr { padding-block: 22px; border-block-end: 1px solid rgb(233 237 247 / .14) }
  .schedule td { border: 0; padding: 4px 0 }
  .schedule .name { white-space: normal; padding-block-end: 8px }
  .revtable tr { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; align-items: baseline }
  .revtable td:last-child { grid-column: 2 }
  .revtable .name { padding-block-end: 0 }
}
@media (max-width: 620px) {
  .svc { grid-template-columns: 1fr }
  .svc.highlight { margin-inline: 0 }
  .svc h3, .svc p, .svc ul { grid-column: 1; grid-row: auto }
  form { grid-template-columns: 1fr }
  .field { border-inline-end: 0 }
  .nav .btn { display: none }
  .drawing-bar p { display: none }
  .plan-desktop { display: none }
  .plan-mobile { display: block }
}
