/* עפל — minimal Apple-style layer. Modal styles still come from style.css */
[hidden] { display: none !important; } /* class display rules must not override the hidden attribute */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --grey: #f5f5f7;
  --line: #d2d2d7;
  --blue: #2563EB;
}

body.a { background: #fff; color: var(--ink); font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
.a-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.a-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.a-nav__inner { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.a-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.a-logo img { border-radius: 6px; display: block; }

/* Hero */
.a-hero { text-align: center; padding: 56px 0 72px; }
.a-hero__title { font-size: clamp(38px, 10vw, 80px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.a-hero__lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-2); line-height: 1.5; max-width: 34ch; margin: 24px auto 0; }

/* Actions */
.a-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.a-btn { display: inline-block; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; padding: 14px 28px; border-radius: 980px; transition: background .2s; }
.a-btn:hover { background: #1d4ed8; }
.a-link { font: inherit; font-size: 17px; font-weight: 500; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
.a-link:hover { text-decoration: underline; }
.a-btn:focus-visible, .a-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.a-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a-note { font-size: 13px; color: var(--ink-2); }

/* Floating WhatsApp bubble: appears once the hero button scrolls away */
.a-wa { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.4); transform: scale(0); transition: transform .3s cubic-bezier(.2,.8,.3,1.2); }
.a-wa svg { width: 30px; height: 30px; fill: #fff; }
.a-wa.show { transform: scale(1); }
.a-wa:hover { background: #1fbe5a; }
.a-wa:focus-visible { outline: 3px solid #128C7E; outline-offset: 3px; }

/* Sections */
.a-section { padding: 88px 0; }
.a-section--grey { background: var(--grey); }
.a-h2 { font-size: clamp(32px, 7vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; text-align: center; text-wrap: balance; margin-bottom: 48px; }

/* Tiles */
.a-tiles { display: grid; gap: 16px; }
.a-tile { background: #fff; border-radius: 22px; padding: 32px 28px; }
.a-tile h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.a-tile p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.a-tile--action { position: relative; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.a-tile--action:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.a-tile--action .a-link { margin-top: auto; padding-top: 20px; text-align: left; }
.a-tile__go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole tile is clickable */
.a-tile__art { height: 80px; margin-bottom: 24px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.a-chips span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 980px; background: #eef2ff; color: var(--blue); }
.a-chips .off { background: #fdecef; color: #db2777; text-decoration: line-through; }
.a-sub { text-align: center; font-size: 19px; color: var(--ink-2); margin: -32px 0 40px; }

/* Offer */
.a-phases { list-style: none; display: grid; gap: 16px; }
.a-phases li { background: var(--grey); border-radius: 22px; padding: 32px 28px; }
.a-phases__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.a-phases h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.a-phases p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }


/* Dream sequence — dark stage, each line lights up at screen centre */
.a-dream { background: #000; color: #fff; padding: 30vh 0 24vh; }
.a-dream__line { font-size: clamp(30px, 8.5vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; max-width: 15ch; margin: 0 auto 22vh; text-align: center; color: #fff; opacity: .14; will-change: opacity; } /* opacity is driven by scroll in main.js */
.a-dream__line--end { margin-bottom: 8vh; }
.a-btn--light { background: #fff; color: #000; }
.a-btn--light:hover { background: #e8e8ed; }


/* Close */
.a-close { text-align: center; padding: 112px 0; }
.a-close__title { font-size: clamp(32px, 7vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; max-width: 16ch; margin: 0 auto; }

/* Footer */
.a-footer { background: var(--grey); border-top: 1px solid rgba(0,0,0,.06); padding: 24px 0 32px; }
.a-footer__inner { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); }

/* Tablet / desktop */
@media (min-width: 734px) {
  .a-actions { flex-direction: row; justify-content: center; gap: 32px; }
  .a-section { padding: 120px 0; }
  .a-tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .a-tiles--two { grid-template-columns: repeat(2, 1fr); }
  .a-phases { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .a-tile { padding: 40px 36px; }
  .a-close { padding: 160px 0; }
  .a-footer__inner { flex-direction: row; justify-content: space-between; }
}

/* Reduced motion: keep the gentle fades and light-ups, drop movement */
@media (prefers-reduced-motion: reduce) {
  .a-live__row { animation: none; opacity: 1; }
  .reveal, .reveal.visible { transform: none !important; -webkit-transform: none !important; }
  .a-tile--action:hover { transform: none; }
}

/* Turning point between the struggle and the picture */
.a-dream__line--turn { margin-top: 10vh; margin-bottom: 36vh; }

/* ── Nav links (desktop only) ── */
.a-nav__links { display: flex; align-items: center; gap: 28px; }
.a-nav__link { display: none; font-size: 14px; font-weight: 500; color: #424245; }
.a-nav__link:hover { color: var(--ink); }

/* ── Hero: copy + live panel ── */
.a-hero__grid { display: grid; gap: 48px; }
.a-hero__copy { display: flex; flex-direction: column; align-items: center; }
.a-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: var(--grey); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; margin-bottom: 22px; }
.a-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex: none; animation: a-pulse 1.6s ease-in-out infinite; }
.a-dot--live { background: #4ade80; width: 7px; height: 7px; }
@keyframes a-pulse { 50% { opacity: .35; } }

.a-live { background: #0b0b0f; color: #fff; border-radius: 24px; padding: 16px; text-align: left; box-shadow: 0 40px 80px -24px rgba(15,23,42,.45); }
.a-live__head { display: flex; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; font-size: 12px; font-weight: 600; color: #a1a1a6; }
.a-live__status { display: inline-flex; align-items: center; gap: 7px; color: #4ade80; }
.a-live__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.a-live__row { display: flex; align-items: center; gap: 12px; background: #17171c; border: 1px solid #26262d; border-radius: 14px; padding: 12px 14px; opacity: 0; }
.a-live.visible .a-live__row { animation: a-feed .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d) + .3s); }
@keyframes a-feed { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.a-live__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #1f2a44; display: grid; place-items: center; }
.a-live__icon svg { width: 17px; height: 17px; fill: none; stroke: #93b4ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-live__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.a-live__text b { font-size: 15px; font-weight: 600; }
.a-live__text small { font-size: 13px; color: #a1a1a6; }
.a-live time { flex: none; font-size: 12px; color: #a1a1a6; font-variant-numeric: tabular-nums; }

/* ── What gets built: bento ── */
.a-wrap--wide { max-width: 1200px; }
.a-bento { display: grid; gap: 16px; }
.a-bento__tile { background: var(--grey); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.a-bento__tile h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.a-bento__tile p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.a-bento__tile--blue { background: var(--blue); color: #fff; }
.a-bento__tile--blue p { color: #dbe6ff; }
.a-bento__tile--dark { background: #0b0b0f; color: #fff; }
.a-bento__tile--dark p { color: #a1a1a6; }
.a-bento__bolt { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.a-bento__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-bento__chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.a-bento__bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; }
.a-bento__bars i { flex: 1; background: #c7d6fb; border-radius: 6px 6px 2px 2px; }
.a-bento__bars i.on { background: var(--blue); }
.a-bento__app { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.a-bento__app i { height: 10px; background: var(--line); border-radius: 4px; }
.a-bento__app b { align-self: flex-end; height: 26px; width: 84px; background: var(--ink); border-radius: 999px; }
.a-bento__checks { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.a-bento__checks li { display: flex; align-items: center; gap: 10px; }
.a-bento__checks li::before { content: ""; width: 16px; height: 9px; border-left: 2.4px solid #4ade80; border-bottom: 2.4px solid #4ade80; transform: translateY(-3px) rotate(-45deg); flex: none; }

@media (min-width: 734px) {
  .a-nav__link { display: inline; }
  .a-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .a-bento__tile { grid-column: span 2; border-radius: 28px; padding: 36px; min-height: 280px; }
  .a-bento__tile--wide { grid-column: span 4; }
  .a-bento__tile h3 { font-size: 26px; }
  .a-bento__tile p { font-size: 17px; }
}
@media (min-width: 960px) {
  .a-hero { text-align: left; padding: 96px 0 112px; }
  .a-wrap { max-width: 1200px; } /* one column width for every section on desktop */
  .a-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .a-hero__copy { align-items: flex-start; }
  .a-hero__lede { margin-left: 0; }
  .a-hero .a-actions { justify-content: flex-start; }
  .a-hero .a-cta { align-items: flex-start; }
  .a-live { border-radius: 28px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .a-dot { animation: none; }
  .a-live__row { animation: none !important; opacity: 1; }
}

/* Thumb-sized tap targets (44px) */
.a-logo, .a-close .a-link { min-height: 44px; display: inline-flex; align-items: center; }

/* ── Supporting color: each hue marks a kind of work, never decoration ──
   green = sales & money in, amber = billing, blue = reporting, violet = people & custom builds */
.a-live__icon.a-c-green  { background: rgba(74,222,128,.14); }  .a-c-green svg  { stroke: #4ade80; }
.a-live__icon.a-c-amber  { background: rgba(251,191,36,.14); }  .a-c-amber svg  { stroke: #fbbf24; }
.a-live__icon.a-c-blue   { background: rgba(96,165,250,.16); }  .a-c-blue svg   { stroke: #93b4ff; }
.a-live__icon.a-c-violet { background: rgba(167,139,250,.16); } .a-c-violet svg { stroke: #c4b5fd; }

.a-tint-blue   { background: #eef4ff; }
.a-tint-green  { background: #ecfdf3; }
.a-tint-violet { background: #f4f1ff; }
.a-tint-green .a-bento__bars i { background: #bbf0cf; }
.a-tint-green .a-bento__bars i.on { background: #16a34a; }
.a-tint-violet .a-bento__app { border-color: #e4dcff; }
.a-tint-violet .a-bento__app i { background: #ebe5ff; }
.a-tint-violet .a-bento__app b { background: #7c3aed; }
.a-bento__chips span { display: inline-flex; align-items: center; gap: 7px; }
.a-bento__chips span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue)); }
