/* Layout: a deep-navy product hero, then a light page whose sections alternate
   text and real app screens; one decoded Ex marking is the page's signature. */
:root {
  /* the app's own palette (lib/theme/app_colors.dart) */
  --navy: #185078; --deep: #0e3a5a; --deeper: #092c46; --night: #061d2f;
  --teal: #267295; --sky: #6fb7dc; --mint: #17b8a2; --mint-soft: #e3f6f2;
  --ground: #f3f4f6; --paper: #ffffff; --ink: #0f2233; --muted: #566878; --line: #dbe3ea;
  --pass: #1ea672; --fail: #ff0046; --amber: #f5a623;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.kicker { font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.lead { font-size: 20px; color: var(--muted); max-width: 58ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font: 600 16px/1 var(--body); text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-mint:hover { background: #22c9b2; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--deep); }

/* ── header ── */
.top { position: absolute; inset: 0 0 auto; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.top img { height: 34px; width: auto; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--night) 0%, var(--deeper) 38%, var(--deep) 78%, var(--navy) 120%); padding-top: 120px; padding-bottom: 0; }
.facets { position: absolute; right: -380px; top: 50%; width: 1500px; height: 1500px; transform: translateY(-46%); pointer-events: none; opacity: .9; }
.facets g { transform-origin: 750px 750px; animation: turn 140s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 110px; display: grid; gap: 26px; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); font-weight: 900; line-height: .98; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { color: rgba(255,255,255,.78); }
.hero .kicker { color: var(--sky); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.phones { position: relative; height: 600px; }
.phones .phone { position: absolute; width: 270px; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #3a3f47, #0b0d10 55%); box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.phones .phone img { border-radius: 26px; }
.phones .phone.a { right: 220px; bottom: 0; width: 245px; transform: rotate(-4deg); }
.phones .phone.b { right: 10px; bottom: -36px; transform: rotate(3deg); width: 230px; }
/* the Ex marking above the phones: the field at first look (on the left in Hebrew) */
.phones .ex-badge { position: absolute; top: 0; right: 10px; width: 112px; height: auto; }
.marking-strip { border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 2; background: rgba(6,29,47,.55); backdrop-filter: blur(6px); }
.marking-strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-block: 22px; font: 500 14px/1.3 var(--body); color: rgba(255,255,255,.7); }
.marking-strip b { color: #fff; font-weight: 600; }

/* ── sections ── */
section { padding-block: 110px; }
.head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 760px; }
.head h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.06; }

/* film */
.film { background: var(--ground); }
.film-frame { border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(9,44,70,.22); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* office + report */
.office { background: var(--paper); }
.office-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.office .browser { border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px rgba(9,44,70,.22); border: 1px solid var(--line); background: #fff; }
.office .browser .bar { height: 36px; background: linear-gradient(#f6f8fa, #e8ecf0); display: flex; align-items: center; gap: 7px; padding-inline: 14px; border-bottom: 1px solid var(--line); }
.office .browser .bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.pages { position: relative; height: 520px; }
.pages img { position: absolute; width: 62%; border-radius: 4px; box-shadow: 0 24px 50px rgba(9,44,70,.25); background: #fff; }
.pages img:nth-child(1) { left: 0; top: 30px; transform: rotate(-6deg); }
.pages img:nth-child(2) { left: 19%; top: 10px; transform: rotate(-1deg); }
.pages img:nth-child(3) { left: 38%; top: 40px; transform: rotate(5deg); }
.office-copy { display: grid; gap: 18px; margin-top: 70px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.office-copy div { display: grid; gap: 8px; }
.office-copy h3 { font-size: 20px; font-weight: 800; }
.office-copy p { color: var(--muted); font-size: 16px; }


/* end to end — one continuous motion, driven frame by frame (see script) */
.e2e { background: var(--paper); }
.e2e-grid { max-width: 980px; margin-inline: auto; }
.stage { position: relative; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, var(--night), var(--deeper) 45%, var(--deep)); aspect-ratio: 760 / 560; }
.sbox { position: absolute; left: 0; top: 0; width: 760px; height: 560px; transform-origin: 0 0; }
.sbox > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; }
.sbox .phone { width: 236px; height: 524px; padding: 8px; border-radius: 30px; background: linear-gradient(160deg, #3a3f47, #0b0d10 55%); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.sbox .scr { position: relative; width: 236px; height: 524px; border-radius: 23px; overflow: hidden; background: #121820; }
.sbox .cam { position: absolute; inset: 0; }
.sbox .cam .br { position: absolute; width: 30px; height: 30px; border: 0 solid var(--sky); }
.sbox .cam .tl { left: 12px; top: 128px; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 10px; }
.sbox .cam .tr { right: 12px; top: 128px; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 10px; }
.sbox .cam .bl { left: 12px; top: 366px; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 10px; }
.sbox .cam .brr { right: 12px; top: 366px; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 10px; }
.sbox .ai-chip { position: absolute; top: 54px; left: 50%; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--deeper); border: 1.5px solid var(--sky); color: #fff; font: 600 12px/1 var(--body); white-space: nowrap; transform: translateX(-50%); opacity: 0; }
.sbox .ai-chip svg { width: 12px; height: 12px; fill: var(--sky); }
.sbox .scroll { position: absolute; left: 0; top: 0; width: 236px; height: 1048px; opacity: 0; }
.sbox .pane { position: relative; width: 236px; height: 524px; background: #fff; }
.sbox .pane > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sbox .check > img.ans { opacity: 0; }
.sbox .patch { position: absolute; background-repeat: no-repeat; opacity: 0; border-radius: 3px; }
.sbox .tap { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid var(--sky); background: rgba(255,255,255,.45); opacity: 0; }
.sbox .card { width: 236px; height: 236px; border-radius: 0; overflow: hidden; background: #121820; box-shadow: 0 0 0 rgba(0,0,0,0); }
.sbox .card img { width: 100%; height: 100%; display: block; }
.sbox .scanline { position: absolute; left: 6%; right: 6%; top: 0; height: 3px; background: var(--sky); box-shadow: 0 0 18px 5px rgba(111,183,220,.8); opacity: 0; }
.sbox .mark { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.sbox .mark polygon { fill: rgba(111,183,220,.18); stroke: var(--sky); stroke-width: .008; }
.sbox .chip { position: absolute; left: 0; top: 0; padding: 4px 9px; border-radius: 8px; background: #fff; border: 2px solid var(--sky); color: var(--deeper); font: 700 13px/1 var(--body); white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.35); opacity: 0; transform-origin: 50% 50%; }
.sbox .browser { width: 680px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); opacity: 0; }
.sbox .bbar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: linear-gradient(#f6f8fa, #e8ecf0); border-bottom: 1px solid #dfe4ea; }
.sbox .bbar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.sbox .bbar i:nth-child(2) { background: #febc2e; }
.sbox .bbar i:nth-child(3) { background: #28c840; }
.sbox .bbar span { margin: 0 auto; font: 500 11px/1 var(--body); color: #5b6b7a; background: #fff; border: 1px solid #dde3e9; padding: 3px 18px; border-radius: 999px; }
.sbox .desk { position: relative; width: 680px; height: 425px; }
.sbox .desk img { width: 100%; height: 100%; display: block; }
.sbox .ring { position: absolute; border-radius: 7px; border: 3px solid var(--fail); box-shadow: 0 0 14px rgba(255,0,70,.6); opacity: 0; }
.sbox .r-photos { border-color: var(--sky); box-shadow: 0 0 14px rgba(111,183,220,.7); }
.sbox .page { width: 270px; height: 381px; border-radius: 4px; background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,.45); opacity: 0; }
.sbox .page.p9 img { width: 100%; height: 100%; border-radius: 4px; display: block; }
/* who built it */
.built { background: var(--deeper); color: #fff; }
.built .kicker { color: var(--mint); }
.built .head h2 { color: #fff; }
.built .lead { color: rgba(255,255,255,.75); }
.built-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.built-grid div { border-top: 2px solid var(--mint); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.built-grid h3 { font-size: 20px; font-weight: 800; }
.built-grid p { color: rgba(255,255,255,.72); font-size: 16px; }

/* contact */
.cta { padding-block: 110px; }
.cta-box { border-radius: 28px; padding: 64px; background: linear-gradient(135deg, var(--deep), var(--navy) 70%, var(--teal)); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.cta-box h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.08; }
.cta-box p { color: rgba(255,255,255,.8); margin-top: 12px; }
.cta-box .kicker { display: block; color: var(--mint); margin-bottom: 14px; }
/* the slogan, "By inspectors, for inspectors": a kicker a size up */
.kicker.slogan { font-size: 16px; }
[dir="rtl"] .kicker.slogan { font-size: 19px; }
.mail { color: rgba(255,255,255,.8); margin-top: 18px; }
.mail span { font: 500 15px/1 var(--mono); user-select: all; color: #fff; }
.cta-box { align-items: start; }
.contact { scroll-margin-top: 16px; display: grid; gap: 8px; background: rgba(6,29,47,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 24px; }
.contact label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.contact input, .contact textarea { width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff; border: 1.5px solid transparent; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.contact textarea { resize: vertical; min-height: 120px; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(23,184,162,.35); }
.contact input[aria-invalid="true"], .contact textarea[aria-invalid="true"] { border-color: var(--fail); }
.contact .btn { justify-self: start; border: 0; cursor: pointer; }
.contact .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.status { min-height: 1.4em; font-size: 15px; color: rgba(255,255,255,.85); }
.status.ok { color: var(--mint); }
.status.err { color: #ffb3c4; }
.qr { margin: 28px 0 0; display: flex; align-items: center; }
/* the Ex marking, centred between the QR code and the form card */
.qr-ex { flex: 1; display: flex; justify-content: center; }
.qr-ex img { width: 84px; height: auto; }
.qr > img { width: 132px; height: 132px; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 10px 24px rgba(6,29,47,.3); }
@media (min-width: 961px) { .qr { margin-top: 36px; margin-inline-end: -40px; } .qr > img { width: 236px; height: 236px; padding: 10px; border-radius: 18px; } .qr-ex img { width: 112px; } }
.contact .req, .contact .opt { font-weight: 400; font-size: 12px; margin-left: 6px; color: rgba(255,255,255,.6); }
.contact .req { color: var(--mint); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row2 > div { display: grid; gap: 8px; align-content: start; }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

footer { border-top: 1px solid var(--line); padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer img { height: 26px; width: auto; }

@media (max-width: 960px) {
    .hero .wrap, .office-grid, .cta-box { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 20px; }
  .phones { height: 590px; }   /* room above the phones for the Ex marking */
  .phones .phone.a { right: auto; left: 4%; bottom: 0; width: 210px; }
  .phones .phone.b { right: 4%; bottom: -30px; width: 195px; }
  .phones .ex-badge { right: 4%; width: 84px; }
  .office-copy, .built-grid { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 80px; }
  .cta-box { padding: 36px 22px; }
  .pages { height: 420px; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .phones { height: 480px; }
  .phones .ex-badge { width: 72px; }
  .phones .phone.a { width: 165px; }
  .phones .phone.b { width: 155px; }
  .pages { height: 320px; }
}
}
@media (prefers-reduced-motion: reduce) {
  .facets g { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* language switcher */
.lang { display: flex; gap: 6px; }
.lang a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; color: rgba(255,255,255,.85); text-decoration: none; font: 600 14px/1 var(--body); border: 1.5px solid transparent; }
.lang a:hover { border-color: rgba(255,255,255,.3); }
.lang a[aria-current="page"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.lang svg { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); flex: none; }
.lang a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Hebrew: right to left, Hebrew faces */
[dir="rtl"] { --display: "Rubik", "Montserrat", "Segoe UI", system-ui, sans-serif; --body: "Heebo", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .kicker { letter-spacing: .04em; }
[dir="rtl"] .phones .phone.a { right: auto; left: 220px; transform: rotate(4deg); }
[dir="rtl"] .phones .phone.b { right: auto; left: 10px; transform: rotate(-3deg); }
[dir="rtl"] .phones .ex-badge { right: auto; left: 10px; }
[dir="rtl"] .contact .req, [dir="rtl"] .contact .opt { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .contact input[type="email"], [dir="rtl"] .contact input[type="tel"], [dir="rtl"] .mail span { direction: ltr; text-align: right; }
[dir="rtl"] .stage { direction: ltr; }
@media (max-width: 960px) {
  [dir="rtl"] .phones .phone.a { left: 4%; right: auto; }
  [dir="rtl"] .phones .phone.b { left: auto; right: 4%; }
  [dir="rtl"] .phones .ex-badge { right: auto; left: 4%; }
}

/* brand: Exy (the app) by Exolution (the company) */
.brandline { display: flex; align-items: center; gap: 18px; }
.exy { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; direction: ltr; }
.exy svg { width: 38px; height: 38px; }
.exy span { font: 900 32px/1 "Montserrat", var(--display); letter-spacing: -.01em; }
.by { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font: 500 14px/1 var(--body); padding-inline-start: 18px; border-inline-start: 1px solid rgba(255,255,255,.25); }
.by img { height: 35px; width: auto; }   /* its capitals match the 32 px "Exy" (cap height 64% of the logo) */
.built .company { height: 44px; width: auto; margin-bottom: 8px; }
footer img { height: 30px; width: auto; }
@media (max-width: 520px) {
  .brandline { gap: 10px; }
  .exy svg { width: 30px; height: 30px; }
  .exy span { font-size: 26px; }
  .by { display: none; }   /* the company is in "Who built it" and the footer */
  .lang a { padding: 6px 8px; gap: 6px; font-size: 13px; }
  .lang:has(> a:nth-child(3)) svg { display: none; }   /* three languages: names only, so the header fits */
}

/* Hebrew page: the brand group stays on the left and the language switcher on
   the right, as on the English page. */
[dir="rtl"] .top .wrap { direction: ltr; }
/* inside the group the phrase reads right to left: Exy · מבית · Exolution */
[dir="rtl"] .brandline, [dir="rtl"] .by { direction: rtl; }

/* "Who built it": certified and accredited — the badges on white tiles, the words beside them */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.12); }
.cert { display: flex; align-items: center; gap: 20px; }
.cert .badge { flex: none; display: grid; place-items: center; width: 156px; height: 104px; padding: 10px 14px; border-radius: 12px; background: #fff; }
.cert .badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.cert h3 { font-size: 18px; font-weight: 800; line-height: 1.3; }
@media (max-width: 760px) {
  .certs { grid-template-columns: 1fr; }
  .cert .badge { width: 120px; height: 84px; }
}
.cert .std { display: inline-block; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.cert h3 small { display: block; margin-top: 4px; font: 500 15px/1.4 var(--body); color: rgba(255,255,255,.75); }

/* Hero: the two certificates under the buttons, the name under each badge */
.hero-certs { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; }
.hcert { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font: 600 14px/1.2 var(--mono); color: rgba(255,255,255,.85); }
.hcert .badge { flex: none; display: grid; place-items: center; width: 132px; height: 88px; padding: 7px 10px; border-radius: 12px; background: #fff; }
.hcert .badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.film-sub { margin: 56px 0 22px; font-size: clamp(20px, 2.4vw, 28px); }

/* App Store and Google Play badges (official artwork, 44px tall). */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.stores a { display: block; border-radius: 9px; transition: transform .15s ease, box-shadow .15s ease; }
.stores a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.stores a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.stores img { display: block; height: 44px; width: auto; }
.cta-box .get-app { margin-top: 26px; font-weight: 600; color: #fff; }
.cta-box .get-app + .stores { margin-top: 10px; }
