:root {
  --bg:#f4f5f7; --surface:#ffffff; --text:#1a1a2e; --text-dim:#6b7280;
  --accent:#6c5ce7; --accent-dark:#5a4bd1; --border:#e5e7eb;
  --green:#00b894; --radius:14px;
  /* Accent palette — mirrors the app's own UI colors (css/styles.css) so the
     marketing site and product feel like the same brand, not a separate look. */
  --coral:#e17055; --amber:#fdcb6e; --sky:#74b9ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
html { height: 100%; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.7;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 800; font-size: 22px; color: var(--accent); text-decoration: none; letter-spacing: -.3px; }
nav { display: flex; gap: 26px; align-items: center; }
nav a.navlink { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; position: relative; padding-bottom: 3px; }
nav a.navlink::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transition: width .18s ease;
}
nav a.navlink:hover { color: var(--accent); }
nav a.navlink:hover::after, nav a.navlink.active::after { width: 100%; }
nav a.navlink.active { color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown > .dropdown-toggle {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--text); font-weight: 600; font-size: 14px; padding: 0; display: flex; align-items: center; gap: 4px;
}
.nav-dropdown > .dropdown-toggle:hover, .nav-dropdown.open > .dropdown-toggle { color: var(--accent); }
.dropdown-toggle .caret { font-size: 10px; transition: transform .15s ease; }
.nav-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 14px); inset-inline-end: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 32px -12px rgba(26,26,46,.2); min-width: 200px; padding: 8px; z-index: 200;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 14px; text-align: start;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--accent); }
.lang-flags { display: flex; gap: 3px; margin-inline-start: 6px; padding-inline-start: 14px; border-inline-start: 1px solid var(--border); }
.lang-flags button {
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  font-size: 13px; line-height: 1; padding: 3px 5px; cursor: pointer; opacity: .45;
  transition: opacity .15s ease, transform .15s ease;
}
.lang-flags button:hover { opacity: .8; transform: scale(1.08); }
.lang-flags button.active { opacity: 1; border-color: var(--border); background: var(--bg); }
.hero {
  text-align: center; padding: 100px 24px 76px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(108,92,231,.14), transparent 60%),
    radial-gradient(600px 300px at 85% 10%, rgba(0,184,148,.10), transparent 60%),
    radial-gradient(560px 280px at 50% 100%, rgba(253,203,110,.14), transparent 65%),
    linear-gradient(180deg, rgba(108,92,231,.06), transparent);
}
.hero > * { position: relative; z-index: 1; }

/* Hero two-column layout — copy first in the DOM, photo second. Flex row
   direction follows the document's dir attribute automatically: in RTL
   (Hebrew, the default) the first child lands on the right and the second
   on the left — exactly "text right, photo left" — and in LTR (English)
   it mirrors to the idiomatic "text left, photo right", with no extra
   overrides needed either way. */
.hero-columns {
  display: flex; align-items: center; gap: 40px; text-align: start;
  max-width: 1220px; margin: 0 auto;
}
.hero-copy { flex: 1 1 40%; min-width: 0; }
.hero-copy h1 {
  margin-inline: 0; font-size: 40px; line-height: 1.15;
}
.hero-copy p { margin: 0 0 26px; font-size: 17px; line-height: 1.6; }
.hero-copy .stats { justify-content: flex-start; gap: 36px; }
.hero-media { flex: 1 1 58%; }
.hero-photo {
  width: 100%; height: auto; border-radius: 20px; display: block;
  box-shadow: 0 30px 60px -28px rgba(26,26,46,.4), 0 8px 20px -10px rgba(108,92,231,.25);
}
@media (max-width: 860px) {
  .hero-columns { flex-direction: column; text-align: center; gap: 32px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .stats { justify-content: center; }
  .hero-media { width: 100%; max-width: 560px; }
}

/* Feature spotlight — same photo-left/text-right pattern as the hero, reused
   for mid-page feature sections (e.g. products.html's attendance module).
   Same RTL/LTR auto-mirroring via DOM order + flex row direction. */
.feature-columns {
  display: flex; align-items: center; gap: 44px; text-align: start; margin-bottom: 24px;
}
.feature-copy { flex: 1 1 42%; min-width: 0; }
.feature-copy .section-badge { margin-bottom: 12px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy p.feature-slogan { color: var(--text); font-size: 17px; line-height: 1.7; }
.feature-media { flex: 1 1 58%; }
.feature-photo {
  width: 100%; height: auto; border-radius: 20px; display: block;
  box-shadow: 0 30px 60px -28px rgba(26,26,46,.4), 0 8px 20px -10px rgba(108,92,231,.25);
}
@media (max-width: 860px) {
  .feature-columns { flex-direction: column; text-align: center; gap: 28px; }
  .feature-copy .section-badge { margin-inline: auto; }
}

/* Decorative organic blobs — playful color behind the content, never on top
   of it. Size/position set per-instance via inline style since hero content
   height varies page to page; color + shape + motion live here. */
.bg-blob {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  opacity: .16;
}
.bg-blob.purple { background: var(--accent); }
.bg-blob.coral  { background: var(--coral); }
.bg-blob.amber  { background: var(--amber); }
.bg-blob.teal   { background: var(--green); }
.bg-blob.sky    { background: var(--sky); }
.bg-blob.float      { animation: blobFloat 9s ease-in-out infinite; }
.bg-blob.float-slow { animation: blobFloat 13s ease-in-out infinite; }
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(6deg); }
}

/* Scroll-reveal — cards/stats/the app preview fade+rise into place as they
   enter the viewport (lang.js adds .reveal on load, then .in-view via
   IntersectionObserver). Defined before any :hover rule that also sets
   transform (e.g. .card:hover) so the hover rule wins the cascade tie once
   an element has settled into .in-view — otherwise the hover lift would be
   silently cancelled by this rule's own translateY(0) reset. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.hero h1 {
  font-size: 46px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.5px;
  background: linear-gradient(90deg, var(--text), var(--accent-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 19px; color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 10px; font-weight: 700;
  text-decoration: none; font-size: 15px; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(108,92,231,.55); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -6px rgba(108,92,231,.6); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn-outline { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: rgba(108,92,231,.06); transform: translateY(-2px); }
section { max-width: 980px; margin: 0 auto; padding: 76px 24px; }

/* Alternating section bands — a plain white band with hairline top/bottom
   borders, full-bleed regardless of the section's own max-width (the
   box-shadow spread + clip-path is the standard trick for a full-width
   background off a width-constrained element, no wrapper markup needed).
   Applied to alternating sections down each page so consecutive blocks of
   content read as distinct sections, not one continuous scroll. */
.section-alt {
  position: relative; background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
section h2 { font-size: 32px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 14px; text-align: right; position: relative; padding-inline-start: 18px; }
section h2::before { content:''; position:absolute; inset-inline-start:0; top:6px; bottom:6px; width:5px; border-radius:3px; background: var(--accent); }
section .subtitle { color: var(--text-dim); text-align: right; max-width: 640px; margin: 0 0 44px; font-size: 16px; }
html[data-lang="en"] section h2, html[data-lang="en"] section .subtitle { text-align: left; }
.section-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-dark);
  margin-bottom: 14px; background: rgba(108,92,231,.1); padding: 6px 16px; border-radius: 20px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: right;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(26,26,46,.15); }
.card .icon {
  font-size: 28px; margin-bottom: 14px; width: 54px; height: 54px; border-radius: 16px;
  background: rgba(108,92,231,.1); display: flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .icon { transform: scale(1.12) rotate(-6deg); }
/* Rotate the icon tint + hover accent through the brand's accent palette so a
   grid of cards reads as lively, not a wall of identical purple boxes. */
.grid .card:nth-child(5n+2) .icon { background: rgba(225,112,85,.12); }
.grid .card:nth-child(5n+3) .icon { background: rgba(253,203,110,.22); }
.grid .card:nth-child(5n+4) .icon { background: rgba(0,184,148,.12); }
.grid .card:nth-child(5n+5) .icon { background: rgba(116,185,255,.16); }
.grid .card:nth-child(5n+1):hover { border-color: rgba(108,92,231,.35); box-shadow: 0 16px 32px -14px rgba(108,92,231,.35); }
.grid .card:nth-child(5n+2):hover { border-color: rgba(225,112,85,.35); box-shadow: 0 16px 32px -14px rgba(225,112,85,.35); }
.grid .card:nth-child(5n+3):hover { border-color: rgba(253,203,110,.5); box-shadow: 0 16px 32px -14px rgba(253,203,110,.4); }
.grid .card:nth-child(5n+4):hover { border-color: rgba(0,184,148,.35); box-shadow: 0 16px 32px -14px rgba(0,184,148,.35); }
.grid .card:nth-child(5n+5):hover { border-color: rgba(116,185,255,.4); box-shadow: 0 16px 32px -14px rgba(116,185,255,.35); }
html[data-lang="en"] .card .icon { margin-left: 0; }
.card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; letter-spacing: -.1px; }
.card p { font-size: 14px; color: var(--text-dim); }
.card-cta {
  display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700;
  color: var(--accent); text-decoration: none; transition: color .15s ease, transform .15s ease;
}
.card-cta:hover { color: var(--accent-dark); transform: translateX(-2px); }
html[data-lang="en"] .card-cta:hover { transform: translateX(2px); }
.stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 20px; }
.stats .stat { text-align: center; }
.stats .stat .num { font-size: 34px; font-weight: 800; color: var(--accent); }
.stats .stat:nth-child(2) .num { color: var(--coral); }
.stats .stat:nth-child(3) .num { color: var(--green); }
.stats .stat .label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* App preview mockup — a stylized recreation of the schedule screen (not a
   literal screenshot), shown as a floating browser-style card under the
   hero copy, with a bottom fade so it reads as a glimpse, not a full page. */
.app-preview { max-width: 760px; margin: 56px auto 0; perspective: 1200px; }
.app-preview-frame {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: 0 40px 70px -30px rgba(26,26,46,.35), 0 10px 24px -12px rgba(108,92,231,.25);
  transform: rotateX(3deg) scale(1);
  position: relative;
}
.app-preview-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; direction: ltr;
  background: #f3f3f6; border-bottom: 1px solid var(--border);
}
.app-preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-preview-bar .dot-red { background: #ff5f57; }
.app-preview-bar .dot-yellow { background: #febc2e; }
.app-preview-bar .dot-green { background: #28c840; }
.app-preview-url {
  margin-inline-start: 14px; font-size: 11px; color: var(--text-dim); direction: ltr;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 3px 14px;
}
.app-preview-body { padding: 18px; position: relative; }
.app-preview-table { width: 100%; border-collapse: collapse; font-size: 12px; direction: rtl; }
.app-preview-table th, .app-preview-table td {
  padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.app-preview-table thead th { color: var(--text-dim); font-weight: 700; font-size: 11px; }
.app-preview-table td.emp { text-align: start; font-weight: 700; color: var(--text); }
.app-preview-table .shift {
  display: inline-block; background: rgba(108,92,231,.12); color: var(--accent-dark);
  border-radius: 20px; padding: 4px 10px; font-weight: 700; font-size: 11px; direction: ltr;
}
.app-preview-fade {
  position: absolute; inset-inline: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface) 85%);
}
@media (max-width: 640px) {
  .app-preview-table { font-size: 10px; }
  .app-preview-table th, .app-preview-table td { padding: 6px 3px; }
}

.story-section {
  position: relative; max-width: none; padding-left: 24px; padding-right: 24px; overflow: hidden;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(108,92,231,.06), transparent 65%),
    radial-gradient(420px 240px at 90% 30%, rgba(253,203,110,.08), transparent 60%),
    radial-gradient(420px 240px at 5% 80%, rgba(225,112,85,.06), transparent 60%);
}
.story-section > * { position: relative; z-index: 1; }
.long-copy { max-width: 720px; margin: 0 auto; font-size: 16.5px; line-height: 1.85; color: var(--text); position: relative; }
.long-copy p { margin-bottom: 22px; }
.long-copy .lead { font-size: 20px; font-weight: 600; line-height: 1.65; color: var(--text); }
.long-copy .pull-line {
  font-size: 27px; font-weight: 800; text-align: center; letter-spacing: -.3px;
  margin: 8px auto 30px; max-width: 480px; line-height: 1.35;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.download-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; text-align: center; transition: transform .18s ease, box-shadow .18s ease;
}
.download-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(26,26,46,.15); }
.download-card .platform-icon {
  font-size: 38px; margin: 0 auto 14px; width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(108,92,231,.1);
}
.download-card:nth-child(2) .platform-icon { background: rgba(0,184,148,.12); }
.coming-soon {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  color: var(--accent); background: rgba(108,92,231,.1); padding: 7px 16px; border-radius: 20px;
}
#contact-form {
  max-width: 560px; margin: 0 auto; display: grid; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; box-shadow: 0 24px 48px -24px rgba(26,26,46,.16);
}
#contact-form label {
  font-size: 11px; font-weight: 700; display: block; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim);
}
#contact-form input, #contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
#contact-form input:focus, #contact-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(108,92,231,.12);
}
#contact-form textarea { min-height: 130px; resize: vertical; }
#contact-form button[type="submit"] {
  width: 100%; padding: 16px; font-size: 15px; margin-top: 4px;
}
.email-alt { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-dim); }
.email-alt a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Contact methods — elegant icon cards below the form, replacing the plain
   inline phone/email line that used to sit in the hero. */
.contact-methods {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  max-width: 560px; margin: 28px auto 0;
}
.contact-method {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--text); flex: 1 1 220px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.contact-method:hover {
  transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(26,26,46,.2);
  border-color: rgba(108,92,231,.35);
}
.contact-method-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: rgba(108,92,231,.1); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-method:nth-child(2) .contact-method-icon { background: rgba(0,184,148,.12); }
.contact-method-text { display: flex; flex-direction: column; gap: 3px; text-align: start; }
.contact-method-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.contact-method-value { font-size: 15px; font-weight: 700; direction: ltr; }
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  text-align: center; padding: 28px; color: var(--text-dim); font-size: 13px;
  margin-top: auto;
}
[data-i18n] { display: none; }
html[data-lang="he"] [data-i18n="he"] { display: revert; }
html[data-lang="en"] [data-i18n="en"] { display: revert; }
html[data-lang="en"] { direction: ltr; }
html[data-lang="en"] .card { text-align: left; }
@media (max-width: 640px) {
  nav { gap: 12px; }
  nav a.navlink { font-size: 13px; }
  .hero h1 { font-size: 30px; }
  .dropdown-menu { inset-inline-end: -16px; min-width: 180px; }
  .bg-blob { opacity: .1; transform: scale(.7); }
}
