/* KnowFit — Stage A static site. Performance direction: Dark & Electric Lime.
   Logical properties throughout so one stylesheet serves RTL (he) and LTR (en). */

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/heebo-hebrew-wght-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/heebo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #101211;
  --lime: #c5f65b;
  --surface: #1c211e;
  --text: #f5f7f2;
  --text-2: #a1aaa3;
  --border: #343d35; /* decorative dividers only (1.67:1); never the sole indicator of meaning */
  --surface-2: #232925;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lime); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--bg); font-weight: 700; padding: 10px 16px;
  border-radius: 10px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 18, 17, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-block-end: 1px solid rgba(52, 61, 53, .6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark {
  font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; color: var(--text);
  text-decoration: none; direction: ltr; unicode-bidi: isolate; line-height: 1;
}
.wordmark .fit { color: var(--lime); }
.lang-switch {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.lang-switch:hover { border-color: var(--text-2); }

/* Pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; line-height: 1.2;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(197, 246, 91, .1); color: var(--lime);
  border: 1px solid rgba(197, 246, 91, .35);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.pill--muted { background: var(--surface); color: var(--text-2); border-color: var(--border); }

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px); }
.hero .container { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1fr 1.05fr; } }
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.025em;
  font-weight: 800; margin: 22px 0 20px;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--lime); }
.hero .lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--text); max-width: 34ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: var(--lime); color: var(--bg); border: 0;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(197, 246, 91, .18); }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta-note { color: var(--text-2); font-size: .95rem; margin: 14px 0 0; max-width: 46ch; }
.cta-email { color: var(--text-2); font-size: .95rem; }

/* Hero figure */
.hero-figure { margin: 0; }
.stage {
  position: relative; container-type: inline-size;
  aspect-ratio: 600 / 440; width: 100%;
  border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 22% 50%, rgba(197, 246, 91, .07), transparent 70%),
    linear-gradient(180deg, #151816, #121413);
  border: 1px solid rgba(52, 61, 53, .7);
}
.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
[dir="rtl"] .stage-svg { transform: scaleX(-1); }
.node-label {
  position: absolute; top: 57%; inset-inline-start: 43.7%; transform: translateX(-50%);
  font-size: 2.6cqi; font-weight: 800; letter-spacing: -.01em; color: var(--text);
  direction: ltr; unicode-bidi: isolate; white-space: nowrap;
}
[dir="rtl"] .node-label { transform: translateX(50%); }
.node-label .fit { color: var(--lime); }

.ai-card {
  position: absolute; inset-inline-end: 3%; top: 12%; width: 43%;
  background: var(--surface); border: 1px solid rgba(52, 61, 53, .9);
  border-radius: 4cqi; padding: 3cqi; font-size: 2.45cqi; line-height: 1.45;
  box-shadow: 0 2cqi 6cqi rgba(0, 0, 0, .35);
}
.ai-card__head { display: flex; align-items: center; gap: 1.6cqi; color: var(--text-2); font-weight: 600; font-size: 2.2cqi; margin-block-end: 2.4cqi; }
.ai-card__head .av {
  width: 4.6cqi; height: 4.6cqi; border-radius: 50%; flex: none;
  border: .45cqi solid var(--text-2); position: relative;
}
.ai-card__head .av::after {
  content: ""; position: absolute; inset: 28%; border-radius: 50%; background: var(--text-2);
}
.bubble { border-radius: 2.6cqi; padding: 1.8cqi 2.4cqi; margin: 0; }
.bubble--q {
  background: var(--surface-2); color: var(--text); margin-inline-start: auto; max-width: 92%;
  border-end-end-radius: .8cqi; margin-block-end: 2.2cqi; width: fit-content;
}
[dir="rtl"] .bubble--q { margin-inline-start: 0; margin-inline-end: auto; border-end-end-radius: 2.6cqi; border-end-start-radius: .8cqi; }
.bubble--a { background: transparent; padding-inline: 0; color: var(--text); }
.bubble--a .hl { color: var(--lime); font-weight: 700; }
.typing { display: flex; gap: 1cqi; height: 3cqi; align-items: center; margin-block-end: -3cqi; }
.typing i { width: 1.3cqi; height: 1.3cqi; border-radius: 50%; background: var(--text-2); display: block; }

.figure-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.figure-caption { color: var(--text-2); font-size: .9rem; margin: 0; }
.replay {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--text);
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  min-height: 44px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.replay:hover { border-color: var(--text-2); }
.replay svg { width: 16px; height: 16px; }

/* --- Hero animation (CSS only; settles in ~4.6s; no loop) --- */
.anim .wave { stroke-dasharray: 420; animation: draw 1.1s var(--ease) .15s both; }
.anim .ring-arc { animation: ring 1.3s var(--ease) .2s both; }
.anim .pulse { transform-box: fill-box; transform-origin: center; animation: beat .55s ease-out .35s 2 both; }
.anim .flow { stroke-dasharray: 6 8; animation: flowIn .9s var(--ease) 1s both; }
.anim .packet { offset-rotate: 0deg; animation: travel 1.25s cubic-bezier(.45, 0, .2, 1) 1.05s both; }
.anim .node { transform-box: fill-box; transform-origin: center; animation: nodePop .5s var(--ease) 1.55s both; }
.anim .node-label { animation: fadeIn .5s var(--ease) 1.65s both; }
.anim .ai-card { animation: cardIn .6s var(--ease) 1.9s both; }
.anim .bubble--q { animation: rise .45s var(--ease) 2.25s both; }
.anim .typing { animation: typing 1.05s linear 2.75s both; }
.anim .typing i { animation: dot .6s ease-in-out 2.75s 2 both; }
.anim .typing i:nth-child(2) { animation-delay: 2.85s; }
.anim .typing i:nth-child(3) { animation-delay: 2.95s; }
.anim .bubble--a .ln { display: inline; animation: fadeIn .55s var(--ease) both; }
.anim .bubble--a .ln:nth-child(1) { animation-delay: 3.8s; }
.anim .bubble--a .ln:nth-child(2) { animation-delay: 4.15s; }
.anim .bubble--a .ln:nth-child(3) { animation-delay: 4.45s; }

/* Final (settled) state when not animating */
.packet { opacity: 0; }
.typing { opacity: 0; }

@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes ring { from { stroke-dashoffset: 188.5; } to { stroke-dashoffset: 60; } }
@keyframes beat { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes flowIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes travel {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes nodePop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(2cqi); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.5cqi); } to { opacity: 1; transform: none; } }
@keyframes typing { 0% { opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-.6cqi); } }

@media (prefers-reduced-motion: reduce) {
  .anim *, .anim { animation: none !important; transition: none !important; }
  .replay { display: none; }
  .btn:hover { transform: none; }
}

/* Sections */
.section { padding-block: clamp(56px, 9vw, 112px); border-block-start: 1px solid rgba(52, 61, 53, .55); }
.section-head { max-width: 720px; margin-block-end: clamp(28px, 4vw, 48px); }
.section h2 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 16px 0 12px; }
.section .sub { color: var(--text-2); font-size: 1.1rem; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  background: var(--surface); border: 1px solid rgba(52, 61, 53, .9); border-radius: var(--radius);
  padding: 26px 24px 24px; position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lime); color: var(--bg); font-weight: 800; font-size: 1.2rem; margin-block-end: 18px;
}
.step h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
.step p { margin: 0; color: var(--text-2); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; border: 1px solid var(--lime); color: var(--text);
}
.choice--off { border-color: var(--border); color: var(--text-2); }
.choice--off .soon { font-size: .8rem; color: var(--bg); background: var(--text-2); border-radius: 999px; padding: 2px 8px; }
.devices { display: flex; gap: 14px; margin-top: 16px; color: var(--text); }
.devices figure { margin: 0; display: grid; justify-items: center; gap: 6px; font-size: .85rem; color: var(--text-2); }
.devices svg { width: 40px; height: 40px; }
.outcome {
  margin-top: 20px; border-radius: var(--radius); padding: 24px;
  background: linear-gradient(90deg, rgba(197, 246, 91, .12), rgba(197, 246, 91, .04));
  border: 1px solid rgba(197, 246, 91, .3);
  display: flex; gap: 16px; align-items: center;
}
[dir="rtl"] .outcome { background: linear-gradient(270deg, rgba(197, 246, 91, .12), rgba(197, 246, 91, .04)); }
.outcome svg { width: 36px; height: 36px; flex: none; color: var(--lime); }
.outcome p { margin: 0; font-size: 1.2rem; font-weight: 700; }
.fine { color: var(--text-2); font-size: .92rem; margin: 18px 0 0; max-width: 80ch; }

.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .questions { grid-template-columns: repeat(2, 1fr); } }
.q {
  background: var(--surface); border: 1px solid rgba(52, 61, 53, .9);
  border-radius: 20px 20px 20px 6px; padding: 20px 22px; font-size: 1.12rem; font-weight: 500;
  display: flex; gap: 14px; align-items: flex-start;
}
[dir="rtl"] .q { border-radius: 20px 20px 6px 20px; }
.q svg { width: 22px; height: 22px; flex: none; color: var(--lime); margin-top: 3px; }

.privacy-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.panel { background: var(--surface); border: 1px solid rgba(52, 61, 53, .9); border-radius: var(--radius); padding: 28px 26px; }
.panel h3 { margin: 0 0 6px; font-size: 1.3rem; }
.panel .tag { margin-block-end: 14px; }
.panel h3 + .group { margin-block-start: 14px; }
.group { margin: 22px 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lime); }
.panel--note { background: transparent; border-style: dashed; align-self: start; }
.panel--note h3 { margin-block-end: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--lime); margin-top: 3px; }
.checks--info svg { color: var(--text-2); }
.today {
  margin-top: 16px; padding: 18px 22px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border); color: var(--text-2);
}
.today strong { color: var(--text); }

/* Footer */
.site-footer { border-block-start: 1px solid rgba(52, 61, 53, .55); padding-block: 48px 56px; color: var(--text-2); font-size: .95rem; }
.site-footer .container { display: grid; gap: 28px; }
@media (min-width: 860px) { .site-footer .container { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.site-footer p { margin: 6px 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { color: var(--text); display: inline-flex; min-height: 44px; align-items: center; }
.site-footer .wordmark { font-size: 1.4rem; display: inline-block; margin-block-end: 8px; }

/* Document pages (privacy / accessibility / partners) */
.doc { padding-block: clamp(40px, 7vw, 80px); }
.doc .container { max-width: 820px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 12px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 10px; line-height: 1.25; }
.doc h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--text-2); }
.doc ul { padding-inline-start: 1.3em; }
.doc li { margin: 6px 0; }
.draft-banner {
  border: 1px solid rgba(197, 246, 91, .45); background: rgba(197, 246, 91, .08);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 8px 0 24px;
}
.draft-banner strong { color: var(--lime); }
.pending {
  display: inline-block; font-size: .85em; font-weight: 600; color: var(--text-2);
  border: 1px dashed var(--text-2); border-radius: 6px; padding: 0 8px;
}
.part {
  border-inline-start: 3px solid var(--lime); padding-inline-start: 18px; margin-top: 44px;
}
.part--planned { border-inline-start-color: var(--text-2); }
.note-box { background: var(--surface); border-radius: var(--radius-sm); padding: 16px 20px; border: 1px solid rgba(52, 61, 53, .9); }
.table-wrap { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: .98rem; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 12px; border-block-end: 1px solid var(--border); }
.doc th { color: var(--text-2); font-weight: 600; }
.back { display: inline-flex; min-height: 44px; align-items: center; }

@media (max-width: 400px) {
  .hero h1 { font-size: 2.45rem; }
  .btn { width: 100%; }
}

/* Packet route (kept in CSS so the CSP needs no inline styles). Matches .flow d. */
.packet { offset-path: path('M 214 202 C 238 202, 244 230, 262 230 C 284 230, 298 206, 324 206'); offset-rotate: 0deg; }

/* R16: tighter mobile hero so the illustration appears sooner */
@media (max-width: 959px) {
  .hero { padding-block: 28px 56px; }
  .hero .container { gap: 28px; }
  .hero .lead { margin-block-end: 22px; }
}
