/* AN·Devs landing page. The product is the hero: a real Inspire screen recording in a phone.
   Monochrome so Inspire's black-and-white UI sits naturally; the logo, the focus ring and
   the WhatsApp button are the only colour. Mobile first; wide layout from 960px. */

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --text: #121212;
  --muted: #555555;
  --rule: #d6d6d1;
  --field: #767672;
  --ink: #0e0e0f;
  --bar-text: #e9e9ec;
  --error: #b3261e;
  --focus: #1f5bff;
  --wa: #18763f;
  --gutter: 16px;
  --radius: 10px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; unicode-bidi: isolate; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 960px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 30;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2b2e; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #dcdcdf; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--surface); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.text-link { text-decoration: underline; text-underline-offset: 4px; padding-block: 12px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Header: sticky dark bar (the logo is only ever placed on dark) */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--bar-text); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo img { height: 26px; width: auto; }
.header-nav { display: none; gap: 28px; font-size: 15px; }
.header-nav a, .header-phone { text-decoration: none; padding-block: 10px; }
.header-nav a:hover, .header-phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.header-phone { display: none; }
@media (min-width: 600px) { .header-phone { display: inline; } .logo img { height: 30px; } }
@media (min-width: 960px) { .header-nav { display: flex; } .header-inner { justify-content: flex-start; } .header-actions { margin-inline-start: auto; } .header-nav { margin-inline-start: 40px; } }

/* Phone frame (pure CSS, around real recordings and screenshots) */
.phone {
  position: relative; width: min(300px, 74vw);
  background: #0b0b0c; border-radius: 52px; padding: 11px;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3e,
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 28px 56px -18px rgba(0, 0, 0, 0.38);
}
.phone-screen { border-radius: 42px; overflow: hidden; background: #f8f7f4; aspect-ratio: 540 / 1174; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-sm { width: 100%; max-width: 230px; border-radius: 40px; padding: 8px; }
.phone-sm .phone-screen { border-radius: 33px; }

/* 1 · Journey: four scenes (opening, apps, websites, contact).
   html.journey-motion: the stage is pinned and js/main.js maps scroll position to every move, so the
   sequence plays forward as you scroll down and in reverse as you scroll up. A triangular frame (our
   "A") stays put; backgrounds wipe up from the bottom between scenes; each scene's device rises into
   the frame and the previous one leaves through the top; text arrives once the device has settled.
   Without it (reduced motion, no JS) the same scenes are stacked as ordinary sections. */
.journey { --j-dark: #0b0b0c; --j-light: #f3f2ee; --j-blue: #1d4fe0; --j-text: #f2f2f4; --j-muted: #a9a9b2; }
.journey .kicker { font-size: 14px; font-weight: 500; color: var(--j-muted); margin-bottom: 10px; }
.journey .t { position: relative; }
.giant { font-size: clamp(54px, 9vw, 150px); line-height: 0.9; font-weight: 700; letter-spacing: -0.035em; }
.s1-title { font-size: clamp(42px, 6vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -0.025em; color: var(--j-text); }
.s1-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.s1-title .word { display: inline-block; }
.s1-side p:not(.kicker), .s4-side p { font-size: 17px; line-height: 1.55; }
.s1-hint { font-size: 13px; color: var(--j-muted); }
.project-name { font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; line-height: 1; margin-bottom: 10px; }
.project-tag p:not(.project-name) { font-size: 15px; line-height: 1.5; }
.feature-count { font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 10px; opacity: 0.75; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list h3 { font-size: 22px; margin-bottom: 6px; }
.feature-list p { font-size: 16px; line-height: 1.5; }
.btn-ghost { background: transparent; color: var(--j-text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Devices */
.device { perspective: 1400px; }
.browser { background: #1a1a1e; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #2c2c33, 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 14px; padding-inline: 12px; background: #202026; direction: ltr; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #45454e; }
.browser-bar .url { flex: 1; text-align: center; font-size: 12px; color: #9a9aa4; background: #2a2a31; border-radius: 6px; padding: 3px 10px; max-width: 320px; margin-inline: auto; }
.browser-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #f4f2ee; }
.site-scroll { width: 100%; height: auto; display: block; will-change: transform; }
.journey .phone { box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 30px 60px -18px rgba(0, 0, 0, 0.55); }
.journey .phone-screen { position: relative; }
.phone-screen .screen, .phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-screen .screen { opacity: 0; transition: opacity 0.35s ease; }
.phone-screen .screen.is-active { opacity: 1; }
.dev-mark img { width: 100%; height: auto; }

/* Compact pause/play control on the phone's lower corner; its accessible name is set by main.js. */
.demo-toggle {
  position: absolute; inset-inline-end: -12px; bottom: -12px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: #f2f2f4; color: var(--ink); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.9), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.demo-toggle:hover { background: #dcdcdf; }
.demo-toggle .icon { width: 18px; height: 18px; }
.demo-toggle[hidden] { display: none; }
.demo-toggle[data-playing="true"] .icon-play, .demo-toggle:not([data-playing="true"]) .icon-pause { display: none; }

/* ---------- Stacked scenes (reduced motion, no JS) ---------- */
.panel { display: none; }
.scene { display: grid; gap: 22px; justify-items: center; text-align: center; padding: 56px var(--gutter) 64px; }
.scene > * { max-width: 760px; }
.scene-1 { background: var(--j-dark); color: var(--j-text); }
.scene-2 { background: var(--j-light); color: var(--text); }
.scene-3 { background: var(--j-blue); color: #fff; }
.scene-4 { background: var(--j-dark); color: var(--j-text); }
.scene-1 .s1-side p:not(.kicker) { color: var(--j-muted); }
.s1-hint { display: none; }
.feature-count { display: none; }
.feature-list { display: grid; gap: 14px; text-align: start; }
.dev-phone .phone { width: 230px; padding: 8px; border-radius: 40px; }
.dev-phone .phone-screen { border-radius: 33px; aspect-ratio: 540 / 1174; }
.dev-phone .screen { display: none; }
.dev-browser { width: 100%; max-width: 680px; }
.dev-mark { width: 160px; }
.journey-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0 var(--gutter) 64px; background: var(--j-dark); }
.journey-bar .btn-ghost { color: var(--j-text); }

/* ---------- Pinned stage (motion) ---------- */
.journey-motion .journey { position: relative; }
.journey-motion .journey-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); overflow: hidden; background: var(--j-dark); }
.journey-motion .panel { display: block; position: absolute; inset: 0; }
.journey-motion .panel-1 { background: var(--j-dark); }
.journey-motion .panel-2 { background: var(--j-light); clip-path: inset(100% 0 0 0); }
.journey-motion .panel-3 { background: var(--j-blue); clip-path: inset(100% 0 0 0); }
.journey-motion .panel-4 { background: var(--j-dark); clip-path: inset(100% 0 0 0); }
.journey-motion .frame {
  position: absolute; left: 50%; bottom: 12%; height: 66%; aspect-ratio: 1.2 / 1; translate: -50% 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.journey-motion .panel-1 .frame { background: linear-gradient(to top, #1f5bff 0%, rgba(0, 184, 255, 0.55) 45%, rgba(0, 184, 255, 0.05) 100%); }
.journey-motion .panel-2 .frame { background: linear-gradient(to bottom, #9fdcff 0%, #4d8dff 60%, #1f5bff 100%); }
.journey-motion .panel-3 .frame { background: #f4f4f1; }
.journey-motion .panel-4 .frame { background: linear-gradient(to top, #1f5bff 0%, #00b8ff 55%, rgba(0, 184, 255, 0.12) 100%); }

.journey-motion .scene { position: absolute; inset: 0; display: block; padding: 0; background: none; text-align: start; pointer-events: none; }
.journey-motion .scene > * { max-width: none; }
.journey-motion .t { position: absolute; z-index: 3; opacity: 0; }
.journey-motion .t.is-on { pointer-events: auto; }
.journey-motion .scene-1 .t { opacity: 1; }
.journey-motion .s1-title { right: 4vw; top: 6%; max-width: 48vw; }
.journey-motion .s1-side { left: 4vw; top: 8%; width: 300px; color: var(--j-muted); }
.journey-motion .s1-hint { display: block; left: 4vw; bottom: 5%; }
.journey-motion .giant { left: 0; right: 0; top: 3%; text-align: center; z-index: 1; }
.journey-motion .scene-2 .giant { color: var(--ink); }
.journey-motion .scene-3 .giant, .journey-motion .scene-4 .giant { color: #fff; }
.journey-motion .project-tag { right: 4vw; top: 50%; width: 250px; }
.journey-motion .feature-card { left: 4vw; top: 50%; width: 280px; }
.journey-motion .scene-2 .project-tag, .journey-motion .scene-2 .feature-card { color: var(--ink); }
.journey-motion .scene-3 .project-tag, .journey-motion .scene-3 .feature-card { color: #fff; }
.journey-motion .feature-count { display: block; }
.journey-motion .feature-list { display: block; position: relative; }
.journey-motion .feature-list li { position: absolute; inset-inline: 0; top: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.journey-motion .feature-list li.is-active { opacity: 1; transform: none; }
.journey-motion .s4-side { left: 4vw; top: 52%; width: 300px; color: var(--j-muted); }
.journey-motion .s4-side .text-link { color: #fff; display: inline-block; margin-top: 8px; }

/* Devices: centred here, then placed, sized and moved every frame by main.js. */
.journey-motion .device { position: absolute; left: 50%; top: 50%; z-index: 2; max-width: none; transform-origin: center; will-change: transform, opacity; }
.journey-motion .dev-phone .screen { display: block; }
.journey-motion .dev-phone .phone { width: 100%; padding: 3.4%; border-radius: 16% / 7.5%; }
.journey-motion .dev-phone .phone-screen { border-radius: 13% / 6%; }
.journey-motion .dev-mark { opacity: 0; }

/* Over the light apps scene the bar's buttons switch to dark so they stay visible. */
.journey-sticky.is-light .journey-bar .btn-light { background: var(--ink); color: #fff; }
.journey-sticky.is-light .journey-bar .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.journey-motion .journey-bar {
  position: absolute; z-index: 4; left: 50%; bottom: 3.5%; translate: -50% 0; padding: 0; background: none;
  flex-wrap: nowrap;
}

/* Opening beat (html.play): the frame grows, a close-up of the app pulls back and turns into place,
   the browser swings in behind it, and the headline rises word by word. The CTAs never move. */
.play .panel-1 .frame { animation: frame-in 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes frame-in { from { opacity: 0; scale: 0.15 0.02; } 40% { opacity: 1; scale: 0.6 0.04; } to { opacity: 1; scale: 1 1; } }
.play .phone-in { transform-origin: 50% 45%; animation: phone-pull 1.6s cubic-bezier(0.7, 0, 0.18, 1) 0.15s both; }
@keyframes phone-pull { from { transform: scale(2.3) rotateY(-16deg) rotateZ(5deg); } to { transform: none; } }
.play .browser-in { transform-origin: 30% 50%; animation: browser-in 1.3s cubic-bezier(0.2, 0.75, 0.2, 1) 0.55s both; }
@keyframes browser-in { from { opacity: 0; transform: translateY(60px) rotateY(26deg) scale(0.88); } 25% { opacity: 1; } to { opacity: 1; transform: none; } }
.play .s1-title .word { animation: word-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.play .s1-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.85s; }
.play .s1-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.95s; }
.play .s1-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 1.07s; }
.play .s1-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 1.17s; }
.play .s1-side > * { animation: fade-up 0.8s ease-out 1.25s both; }
@keyframes word-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Phones: the same choreography, stacked like the reference's mobile layout:
   title on top, device in the frame, text under it, actions at the bottom. */
@media (max-width: 699px) {
  .journey-motion .frame { bottom: 38%; height: 42%; }
  .journey-motion .s1-title { left: 5vw; right: 5vw; top: 3%; max-width: none; font-size: 38px; }
  .journey-motion .s1-side { left: 5vw; right: 5vw; top: auto; bottom: 15%; width: auto; }
  .journey-motion .s1-side .kicker { display: none; }
  .journey-motion .s1-side p { font-size: 15px; }
  .journey-motion .s1-hint { display: none; }
  .journey-motion .giant { top: 2.5%; font-size: 52px; }
  /* Stacked: a one-line project label, then the feature card at full width. */
  .journey-motion .project-tag { top: auto; bottom: 27.5%; right: 5vw; left: 5vw; width: auto; display: flex; align-items: baseline; gap: 10px; }
  .journey-motion .project-name { font-size: 22px; margin-bottom: 0; flex: none; }
  .journey-motion .project-tag p:not(.project-name) { font-size: 13px; line-height: 1.35; }
  .journey-motion .feature-card { top: auto; bottom: 12%; right: 5vw; left: 5vw; width: auto; height: 6.5em; }
  .journey-motion .feature-count { margin-bottom: 4px; }
  .journey-motion .feature-list h3 { font-size: 16px; margin-bottom: 2px; }
  .journey-motion .feature-list p { font-size: 13px; }
  .journey-motion .s4-side { left: 5vw; right: 5vw; top: auto; bottom: 15%; width: auto; text-align: center; }
  .journey-motion .journey-bar { bottom: 2.5%; gap: 8px; }
  .journey-motion .journey-bar .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
}

/* Scroll reveal: added by main.js only when motion is allowed */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 3 · About */
.about { padding-block: 72px; background: var(--surface); border-top: 1px solid var(--rule); }
.about-inner { display: grid; gap: 20px; }
.about-text { display: grid; gap: 14px; max-width: 36em; font-size: 18px; color: #333; }
@media (min-width: 960px) {
  .about { padding-block: 104px; }
  .about-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }
}

/* 2 · Contact */
.contact { background: var(--bg); border-top: 1px solid var(--rule); padding-block: 72px 80px; }
.contact:focus { outline: none; }
.contact-inner { display: grid; gap: 28px; }
.contact-text h2 { margin-bottom: 12px; }
.contact-text p { color: #333; max-width: 26em; font-size: 18px; }

.lead-form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: #fff;
  border: 1.5px solid var(--field); border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input[dir="ltr"] { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b67; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 15px; font-weight: 500; }
.field-error:empty { display: none; }
.btn:disabled { opacity: 0.7; cursor: progress; }
/* Spam trap: kept out of sight and out of the tab order. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The status region stays rendered while empty so screen readers announce its first update. */
.lead-status { border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; background: #fff; }
.lead-status:empty { border: 0; padding: 0; }
.lead-status[data-kind="success"] { border-color: #2f7d4f; border-inline-start-width: 4px; }
.lead-status[data-kind="error"] { border-color: var(--error); border-inline-start-width: 4px; }
.lead-status a { font-weight: 700; text-underline-offset: 4px; }

@media (min-width: 960px) {
  .contact { padding-block: 104px 112px; }
  .contact-inner { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
}

/* 5 · Footer: extra bottom space so the floating button never covers its links */
.site-footer { background: var(--ink); color: var(--bar-text); padding-block: 28px calc(100px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.footer-inner img { height: 24px; width: auto; }
.footer-inner a { display: inline-block; padding-block: 10px; }
.footer-inner .copy { color: #b9b9bd; margin-inline-start: auto; }
@media (min-width: 960px) { .site-footer { padding-bottom: 36px; } }

/* Floating WhatsApp button, labelled so it reads as an action, not decoration */
.wa-float {
  position: fixed; z-index: 15;
  inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: #125c31; }
/* On phones it shrinks to a round icon so it covers as little as possible; the label stays for screen readers. */
@media (max-width: 599px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  .wa-float, .btn { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
