/* CHATI — demo page for the DigiDash chat.
   TASTE.md: cluster 2.2 Editorial-Corporate (authority, no drama) · single accent = Digitouch blue (from the logo).
   Sections from the catalog: H5 header · hero split + CV1 inline form · G1 numbered chips · S4 USP strip · CV2 dark band · F4 minimal footer. */
:root {
  --white: #FFFFFF;
  --gray-50: #F5F5F7;
  --gray-100: #F1F2F4;
  --gray-300: #D1D5DB;
  --gray-500: #6E7280;
  --gray-700: #3A3A3A;
  --ink: #0A0018;              /* Digitouch logo ink */
  --ink-2: #16122A;
  --accent: #1295E9;           /* Digitouch blue (logo mark) — the only accent */
  --accent-soft: #80D9FE;      /* the other end of the logo mark — used only inside the mark gradient */
  --error: #D32F2F;
  --text: var(--ink);
  --muted: var(--gray-500);
  --line: rgba(10, 0, 24, .12);
  --font: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-display: clamp(52px, 6.6vw, 104px);
  --fs-h2: clamp(36px, 4.4vw, 64px);
  --w-reg: 400; --w-bold: 700; --w-display: 900;
  --track-display: -0.025em;
  --track-eyebrow: 0.15em;
  --section-py: 120px;
  --radius: 12px; --radius-card: 16px; --radius-pill: 999px;
  --chat-w: 440px;             /* the widget's docked panel width (chat.css: min(440px, 100vw - 24px)) */
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 40px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 16px; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: 13px; font-weight: var(--w-bold); letter-spacing: var(--track-eyebrow); color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-inline-end: 10px; vertical-align: middle; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); border-radius: 2px; }
.eyebrow--dark { color: rgba(255, 255, 255, .6); }
.h2 { font-size: var(--fs-h2); font-weight: var(--w-display); letter-spacing: var(--track-display); line-height: 1.05; }

/* ---------- buttons (outlined by default; solid only for the lead form = conversion) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 26px; border-radius: var(--radius-pill); font: inherit; font-weight: var(--w-bold); font-size: 16px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s var(--ease); }
.btn i { font-style: normal; transition: transform .22s var(--ease); }
.btn:hover i { transform: translateX(-4px); }
.btn--line { border-color: currentColor; background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--light { border-color: rgba(255, 255, 255, .85); color: var(--white); background: transparent; }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header (H5) ---------- */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav__logo img { width: 150px; height: auto; }
.nav__product { color: var(--muted); font-size: 15px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.nav__product b { color: var(--ink); letter-spacing: .08em; margin-inline-end: 6px; }
.nav .btn { margin-inline-start: auto; }

/* ---------- hero: split + inline form (CV1) ---------- */
.hero { padding-block: 72px 120px; scroll-margin-top: 80px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 72px; align-items: center; }
.hero__copy .eyebrow { margin-bottom: 28px; }
.hero__title { font-size: var(--fs-display); font-weight: var(--w-display); line-height: 1.02; letter-spacing: var(--track-display); }
.hero__accent { color: var(--accent); }
.hero__lead { margin-top: 28px; max-width: 600px; font-size: 20px; color: var(--gray-700); }

.scan { margin-top: 44px; max-width: 760px; }
.scan__row { display: flex; align-items: stretch; gap: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: 20px; padding: 6px; box-shadow: 0 24px 60px -30px rgba(10, 0, 24, .35); }
.field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 8px 18px 8px; min-width: 0; }
.scan .field { flex: 1 1 0; }
.scan .field--url { flex-grow: 1.35; }
.scan .field + .field { border-inline-start: 1px solid var(--line); }
.field__label { font-size: 12px; font-weight: var(--w-bold); letter-spacing: .04em; color: var(--muted); }
.field input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); padding: 2px 0 0; text-align: start; }
.field input[dir="ltr"] { text-align: right; }
.field input::placeholder { color: #A2A6B0; }
.field__err { position: absolute; inset-inline-start: 18px; top: calc(100% + 12px); font-style: normal; font-size: 14px; color: var(--error); white-space: nowrap; }
.field.has-err .field__label { color: var(--error); }
.scan__go { border-radius: 14px; min-height: 64px; padding-inline: 28px; font-size: 17px; }
.scan__note { margin-top: 40px; font-size: 15px; color: var(--muted); }
.scan__note.is-err { color: var(--error); }

/* sample conversation (flat, labelled as an example) */
.sample { border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 40px 80px -40px rgba(10, 0, 24, .3); overflow: hidden; }
.sample__head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sample__dot { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--accent-soft), var(--accent)); }
.sample__head b { font-size: 15px; }
.sample__head small { color: var(--muted); font-size: 13px; }
.sample__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--gray-50); min-height: 300px; }
.bub { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; opacity: 0; transform: translateY(8px); animation: bub-in .5s var(--ease) forwards; }
.bub--me { align-self: flex-start; background: var(--ink); color: var(--white); border-start-start-radius: 4px; }
.bub--bot { align-self: flex-end; background: var(--white); border: 1px solid var(--line); border-start-end-radius: 4px; }
.bub--link { align-self: flex-end; background: transparent; border: 1.5px solid var(--ink); font-weight: var(--w-bold); font-size: 14px; padding: 8px 14px; }
.bub:nth-child(1) { animation-delay: .4s; } .bub:nth-child(2) { animation-delay: 1.4s; } .bub:nth-child(3) { animation-delay: 1.9s; } .bub:nth-child(4) { animation-delay: 3.1s; } .bub:nth-child(5) { animation-delay: 3.8s; }
.bub--typing { display: flex; gap: 5px; padding: 15px 16px; }
.bub--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-500); animation: dots 1.2s infinite ease-in-out; }
.bub--typing i:nth-child(2) { animation-delay: .15s; } .bub--typing i:nth-child(3) { animation-delay: .3s; }
.sample__cap { padding: 12px 22px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@keyframes bub-in { to { opacity: 1; transform: none; } }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- how (G1 numbered chips) ---------- */
.how { padding-block: var(--section-py); background: var(--gray-100); }
.how__list { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.how__list li { padding: 40px 0 0; padding-inline-end: 48px; }
.how__list li + li { padding-inline-start: 40px; border-inline-start: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 32px; padding-inline: 14px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); font-weight: var(--w-bold); font-size: 14px; letter-spacing: .06em; }
.how__list h3 { margin-top: 24px; font-size: 28px; font-weight: var(--w-display); letter-spacing: -0.01em; line-height: 1.15; }
.how__list p { margin-top: 12px; color: var(--gray-700); }

/* ---------- USP strip (S4) ---------- */
.usp { padding-block: 96px; }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.usp__grid b { display: block; font-size: 20px; font-weight: var(--w-bold); padding-top: 18px; border-top: 2px solid var(--ink); }
.usp__grid p { margin-top: 10px; color: var(--gray-700); font-size: 16px; }

/* ---------- final band (CV2) + footer (F4) ---------- */
.final { background: var(--ink); color: var(--white); padding-block: var(--section-py); }
.final__in { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.final__title { font-size: var(--fs-display); font-weight: var(--w-display); letter-spacing: var(--track-display); line-height: 1.02; }
.final p { font-size: 20px; color: rgba(255, 255, 255, .72); }
.final .btn { margin-top: 16px; }
.foot { background: var(--ink); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.foot__in { display: flex; align-items: center; gap: 28px; padding-block: 28px; }
.foot__in img { width: 110px; }
.foot__in a { margin-inline-start: auto; color: var(--white); text-decoration: none; }

/* ================= scanning stage ================= */
.stage { position: fixed; inset: 0; z-index: 20; background: var(--ink); color: var(--white); display: grid; place-items: center; padding: 32px 24px; overflow: auto; animation: fade-in .35s ease both; }
.stage__in { width: 100%; max-width: 620px; }
.stage__logo { width: 110px; margin-bottom: 56px; opacity: .9; }
.stage__host { margin-top: 14px; font-size: clamp(36px, 5.4vw, 64px); font-weight: var(--w-display); letter-spacing: var(--track-display); line-height: 1.05; text-align: right; word-break: break-all; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; padding: 14px 0; opacity: .38; transition: opacity .35s ease; }
.steps li b { display: block; font-size: 19px; font-weight: var(--w-bold); }
.steps li small { display: block; font-size: 14px; color: rgba(255, 255, 255, .62); min-height: 22px; }
.steps__mk { position: relative; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); }
.steps li.is-on, .steps li.is-done { opacity: 1; }
.steps li.is-on .steps__mk { border-color: rgba(255, 255, 255, .18); border-top-color: var(--accent-soft); animation: spin .8s linear infinite; }
.steps li.is-done .steps__mk { background: var(--accent); border-color: var(--accent); }
.steps li.is-done .steps__mk::after { content: ""; position: absolute; inset-inline-start: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.meter { margin-top: 32px; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transition: width .6s var(--ease); margin-inline-start: 0; }
.feed { list-style: none; margin: 22px 0 0; padding: 0; min-height: 120px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.feed li { padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feed-in .4s var(--ease) both; }
.feed li:last-child { color: rgba(255, 255, 255, .9); }
.stage__err { margin-top: 28px; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-card); }
.stage__err p { font-size: 18px; margin-bottom: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes feed-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ================= result ================= */
.demo { position: fixed; inset: 0; z-index: 15; background: var(--gray-100); display: flex; flex-direction: column; animation: fade-in .4s ease both; }
.bar { flex: none; display: flex; align-items: center; gap: 14px; height: var(--bar-h); padding-inline: 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.bar__logo img { width: 104px; }
.bar__live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--ink); color: var(--white); font-size: 13px; font-weight: var(--w-bold); }
.bar__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); animation: pulse 1.8s ease-in-out infinite; }
.bar__host { font-weight: var(--w-bold); font-size: 15px; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.bar__sp { flex: 1; }
@keyframes pulse { 50% { opacity: .35; } }

.inst { flex: none; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 20px; animation: drop .3s var(--ease) both; }
.inst__in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inst__in > p { flex: 1 1 260px; font-size: 15px; color: var(--gray-700); }
.inst .field { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 6px 14px; min-width: 180px; }
.inst .field input { font-size: 16px; }
.inst .field__err { top: auto; bottom: -22px; }
.inst__x { width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.inst__ok { font-weight: var(--w-bold); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.view { position: relative; flex: 1; min-height: 0; padding: 20px; }
.browser { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-card); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(10, 0, 24, .45); overflow: hidden; }
.browser__top { flex: none; display: flex; align-items: center; gap: 14px; height: 44px; padding-inline: 16px; border-bottom: 1px solid var(--line); background: var(--gray-50); }
.browser__dots { display: inline-flex; gap: 6px; direction: ltr; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.browser__url { flex: 1; min-width: 0; height: 28px; line-height: 28px; padding-inline: 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-size: 13px; color: var(--gray-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.browser__open { font-size: 13px; font-weight: var(--w-bold); text-decoration: none; white-space: nowrap; }
.browser__screen { position: relative; flex: 1; min-height: 0; }
.browser__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--white); }
.browser__alt { position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); border-radius: var(--radius-pill); padding: 8px 14px; font: inherit; font-size: 13px; color: var(--gray-700); cursor: pointer; }
.shot { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); background: var(--gray-50); }
.shot__img { background: var(--gray-100) center top / cover no-repeat; border-inline-end: 1px solid var(--line); }
.shot__card { align-self: center; padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.shot__card h3 { font-size: 30px; font-weight: var(--w-display); line-height: 1.15; letter-spacing: -0.01em; }
.shot__card p { color: var(--gray-700); }
.shot__why { font-size: 14px; color: var(--muted) !important; padding-top: 14px; border-top: 1px solid var(--line); }
.hint { position: absolute; inset-inline-end: 36px; bottom: 36px; z-index: 3; max-width: 300px; background: var(--ink); color: var(--white); padding: 14px 18px; border-radius: var(--radius-card); font-size: 15px; box-shadow: 0 20px 40px -20px rgba(10, 0, 24, .6); animation: drop .4s var(--ease) both; }
.nojs { position: fixed; inset-inline: 16px; bottom: 16px; background: var(--ink); color: var(--white); padding: 14px; border-radius: var(--radius); }

/* the docked chat (widget, right side, 440px, full height) sits beside the preview on wide screens */
@media (min-width: 1100px) {
  body.chat-docked .demo { inset-inline-end: var(--chat-w); } /* the chat docks on the LEFT (Kfir 28/10): in RTL that is the inline end */
  body.chat-docked .hint { inset-inline-end: 36px; }
}

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__sample { max-width: 520px; }
  .usp__grid { grid-template-columns: repeat(2, 1fr); }
  .bar__meta { display: none; }
}
@media (max-width: 760px) {
  :root { --section-py: 64px; }
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .nav__in { height: 64px; gap: 12px; }
  .nav__logo img { width: 118px; }
  .nav__product { display: none; }
  .nav .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
  .hero { padding-block: 40px 72px; }
  .hero__title { font-size: clamp(44px, 13.6vw, 60px); }
  .hero__lead { font-size: 18px; margin-top: 20px; }
  .scan { margin-top: 32px; }
  .scan__row { flex-direction: column; border-radius: 18px; padding: 6px; }
  .scan .field { padding: 12px 14px; }
  .scan .field + .field { border-inline-start: 0; border-top: 1px solid var(--line); }
  .field__err { position: static; margin-top: 4px; white-space: normal; }
  .scan__go { margin-top: 6px; min-height: 56px; width: 100%; }
  .scan__note { margin-top: 16px; }
  .how__list { grid-template-columns: 1fr; margin-top: 40px; }
  .how__list li, .how__list li + li { padding: 28px 0; padding-inline: 0; border-inline-start: 0; }
  .how__list li + li { border-top: 1px solid var(--line); }
  .how__list h3 { margin-top: 16px; font-size: 24px; }
  .usp { padding-block: 64px; }
  .usp__grid { grid-template-columns: 1fr; gap: 28px; }
  .final__title { font-size: clamp(44px, 12.4vw, 60px); }
  .final p { font-size: 18px; }
  .foot__in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot__in a { margin-inline-start: 0; }

  .stage { place-items: start center; padding-top: 48px; }
  .stage__logo { margin-bottom: 36px; }
  .steps li b { font-size: 17px; }

  .bar { gap: 10px; padding-inline: 12px; height: 56px; }
  .bar__logo, .bar__host { display: none; }
  .bar .btn--line { display: none; }
  .bar__sp { flex: 1; }
  .inst__in .field { flex: 1 1 100%; }
  .inst__in .btn--solid { flex: 1; }
  .view { padding: 0; }
  .browser { border-radius: 0; border: 0; }
  .browser__open { display: none; }
  .shot { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; }
  .shot__img { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .shot__card { align-self: start; padding: 22px 20px 100px; gap: 10px; }
  .shot__card h3 { font-size: 22px; }
  .hint { inset-inline-start: 16px; inset-inline-end: 96px; bottom: 24px; max-width: none; font-size: 14px; }
  .browser__alt { bottom: auto; top: 10px; inset-inline-start: auto; inset-inline-end: 10px; font-size: 12px; padding: 6px 12px; }
  .hint { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bub { opacity: 1; transform: none; }
}
