/* MyAgnt sales site · built from Mike 03 (structure + copy) and Eleven 04/04b/04c (register)
   Tokens mirrored from the approved app screens (V2) and the MyAgnt DS. Values not in the DS are marked. */

:root {
  --ink: #1c1b26;
  --secondary: #6a6873;
  --berry: #d6457a;
  --berry-hover: #b8396a;       /* darker on hover, never lighter */
  --berry-text: #a8305e;
  --berry-soft: #fbeef3;
  --line: #e8e3db;
  --cream: #f6f3ee;             /* the app's surface: appears only inside phone screens */
  --white: #ffffff;
  --error: #c62828;

  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px;
  --space-20: 20px; --space-24: 24px;
  --section-pad: 96px;          /* DS ask 2: scale stops at 24 */
  --section-pad-mobile: 64px;   /* DS ask 2 */

  --radius-card: 16px;
  --radius-full: 1000px;

  --shadow-phone: 0 12px 32px rgba(28, 27, 38, 0.08);   /* unbound: bg1 recipe */
  --column: 1200px;
  --text-column: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 4px; }

.column { width: 100%; max-width: var(--column); margin: 0 auto; padding: 0 var(--space-24); }

/* ---------- type ---------- */
.display {                     /* hero H1 · 72/80 · -2% · DS ask 3 */
  font-size: 72px; line-height: 80px; letter-spacing: -0.02em; font-weight: 700; margin: 0;
}
.display .berry-line { color: var(--berry); display: block; }
.h-section {                   /* section heading · 48/56 · -1% · DS ask 3 */
  font-size: 48px; line-height: 56px; letter-spacing: -0.01em; font-weight: 700; margin: 0;
}
.eyebrow {                     /* Heading/Section 14 SemiBold in Berry text */
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--berry-text); text-transform: uppercase; margin: 0 0 var(--space-16);
}
.body-base { font-size: 18px; line-height: 26px; color: var(--secondary); margin: 0; }
.h-card { font-size: 18px; line-height: 26px; font-weight: 600; margin: 0; }
.h-name { font-size: 22px; line-height: 30px; font-weight: 600; margin: 0; }
.caption { font-size: 14px; line-height: 20px; color: var(--secondary); margin: 0; }
.strong { font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; background: var(--white);
  border-bottom: 1px solid transparent; transition: border-color 120ms;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .column { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__links { display: flex; align-items: center; gap: var(--space-24); }
.nav__links a:not(.btn) { text-decoration: none; color: var(--ink); }
.nav__links a:not(.btn):hover { color: var(--berry-text); }
.logo img { width: 78px; height: 36px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 var(--space-24); border-radius: var(--radius-full);
  background: var(--berry); color: var(--white); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background-color 120ms;
}
.btn:hover { background: var(--berry-hover); }
.btn:active { background: #a23260; }
.btn--full { width: 100%; height: 48px; }
.btn .spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff;
  border-radius: 50%; margin-right: var(--space-8); animation: spin 800ms linear infinite; display: none;
}
.btn.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .spinner { animation: none; } }

.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-12);
  border-radius: var(--radius-full); background: var(--berry-soft); color: var(--berry-text);
  font-size: 14px; font-weight: 600;
}

.facts { font-size: 14px; line-height: 20px; color: var(--secondary); margin: 0; text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 88px; }
.hero__text { max-width: var(--column); margin: 0 auto; text-align: center; padding: 0 var(--space-24); }
.hero__text .display { margin: var(--space-24) auto 0; max-width: 1000px; }
.hero__text .body-base { max-width: var(--text-column); margin: var(--space-24) auto 0; }
.hero__cta { margin-top: var(--space-24); display: flex; flex-direction: column; align-items: center; gap: var(--space-12); }
.hero__product { position: relative; height: 400px; margin-top: 40px; overflow: hidden; }
.hero__product img { width: 900px; max-width: none; position: absolute; left: 50%; transform: translateX(-50%); top: 0; }
.float {
  position: absolute; width: 64px; height: 64px; opacity: 0.6; pointer-events: none;
}
.float img { width: 64px; height: 64px; }
.float--1 { left: calc(50% - 656px); top: 176px; }
.float--2 { left: calc(50% - 520px); top: 320px; }
.float--3 { left: calc(50% - 624px); top: 452px; }
.float--4 { left: calc(50% + 576px); top: 208px; }
.float--5 { left: calc(50% + 448px); top: 404px; }

/* ---------- sections ---------- */
.section { padding: var(--section-pad) 0; }
.section__header { text-align: center; }
.section__header .body-base { max-width: var(--text-column); margin: var(--space-16) auto 0; }
.stage { display: flex; justify-content: center; align-items: flex-start; margin-top: var(--space-24); }
.stage img { height: auto; max-height: 520px; width: auto; }  /* Caro 2026-10-06: previews must fit one screen */
.preview-caption { text-align: center; margin-top: var(--space-12); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 368px); justify-content: center; gap: var(--space-24); margin-top: var(--space-24); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: var(--space-24);
}
.card p { margin: 0; }
.card .h-card + p { margin-top: var(--space-8); color: var(--secondary); }

/* team */
.team { display: grid; grid-template-columns: repeat(5, 224px); gap: var(--space-20); justify-content: center; margin-top: var(--space-24); }
.team .card { text-align: center; padding: var(--space-24); }
.team img { width: 120px; height: 120px; margin: 0 auto var(--space-8); }
.team .role { color: var(--berry-text); font-size: 14px; line-height: 20px; margin: var(--space-4) 0 var(--space-8); }
.team .contents { color: var(--secondary); font-size: 16px; line-height: 24px; }
.plain-line { text-align: center; margin-top: var(--space-24); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-24); margin-top: var(--space-24); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--berry-soft); color: var(--berry-text); font-weight: 600; font-size: 14px;
  margin-bottom: var(--space-12);
}

/* today */
.lists { display: grid; grid-template-columns: repeat(2, 480px); gap: var(--space-24); justify-content: center; margin-top: var(--space-24); }
.lists ul { list-style: none; padding: 0; margin: var(--space-12) 0 0; }
.lists li { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.lists li:first-child { border-top: 0; }
.note { max-width: var(--text-column); margin: var(--space-24) auto 0; text-align: center; }
.note .signoff { margin-top: var(--space-12); }

/* faq */
.faq { max-width: var(--text-column); margin: var(--space-24) auto 0; }
.faq__item { padding: var(--space-24) 0; border-top: 1px solid var(--line); text-align: left; }
.faq__item:first-child { border-top: 0; }
.faq__item p { margin: var(--space-8) 0 0; color: var(--secondary); }

/* capture */
.capture .card { max-width: 560px; margin: var(--space-24) auto 0; }
.capture .card .body-base { margin-top: var(--space-8); }
.form { margin-top: var(--space-24); }
.field { margin-bottom: var(--space-16); }
.field label { display: block; font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: var(--space-8); }
.field input {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 var(--space-16);
  font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus { outline: none; border-color: var(--berry); }
.field.is-invalid input { border-color: var(--berry); }
.field .error { display: none; color: var(--error); font-size: 14px; line-height: 20px; margin-top: var(--space-8); }
.field.is-invalid .error { display: block; }
.form .fail { display: none; color: var(--error); font-size: 14px; line-height: 20px; margin-bottom: var(--space-12); }
.form.is-failed .fail { display: block; }
.consent { margin-top: var(--space-12); text-align: center; }
.consent a { color: var(--berry-text); }
.confirm { display: none; }
.confirm p { margin-top: var(--space-8); }
.form-block.is-done .form { display: none; }
.form-block.is-done .confirm { display: block; }
.capture .facts { margin-top: var(--space-24); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: var(--space-24) 0; }
.footer .column { display: flex; align-items: center; justify-content: space-between; }
.footer__links { display: flex; gap: var(--space-24); font-size: 14px; color: var(--secondary); }
.footer__links a { text-decoration: none; }

/* legal pages */
.legal { max-width: var(--text-column); margin: 0 auto; padding: 48px var(--space-24) var(--section-pad); }
.legal .back { display: inline-block; font-size: 14px; color: var(--berry-text); text-decoration: none; margin-bottom: var(--space-24); }
.legal h1 { font-size: 48px; line-height: 56px; letter-spacing: -0.01em; margin: 0; }
.legal .updated { margin-top: var(--space-12); }

/* ---------- mobile (390) ---------- */
@media (max-width: 1240px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(5, 1fr); }
  .lists { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .column { padding: 0 var(--space-16); }
  .nav .column { height: 64px; }
  .nav__links a:not(.btn) { display: none; }
  .display { font-size: 40px; line-height: 44px; }               /* DS ask 3, mobile */
  .h-section { font-size: 32px; line-height: 38px; }            /* DS ask 3, mobile */
  .section { padding: var(--section-pad-mobile) 0; }
  .hero { padding-top: 64px; }
  .float { display: none; }
  .chars-row { display: flex; justify-content: center; gap: var(--space-12); margin-top: var(--space-24); opacity: 0.6; }
  .chars-row img { width: 48px; height: 48px; }
  .hero__product { height: 440px; margin-top: var(--space-24); }
  .hero__product img { width: 358px; left: 50%; transform: translateX(-50%); }
  .stage img { width: 100%; max-width: 358px; }
  .cards-3 { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: var(--space-12); }
  .team .card { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-16); text-align: left; padding: var(--space-16); align-items: center; }
  .team img { width: 56px; height: 56px; margin: 0; grid-row: span 3; }
  .steps { grid-template-columns: 1fr; }
  .lists { grid-template-columns: 1fr; }
  .footer .column { flex-direction: column; gap: var(--space-12); align-items: flex-start; }
  .footer__links { flex-wrap: wrap; row-gap: var(--space-12); }
  .footer__links > span { flex-basis: 100%; }
}
@media (min-width: 761px) { .chars-row { display: none; } }

/* ---------- effects (Caro 2026-10-06: "צריך להוסיף קצת אפקטים") ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }

.hero__text > * { animation: rise 700ms ease both; }
.hero__text > :nth-child(1) { animation-delay: 0ms; }
.hero__text > :nth-child(2) { animation-delay: 80ms; }
.hero__text > :nth-child(3) { animation-delay: 160ms; }
.hero__text > :nth-child(4) { animation-delay: 240ms; }
.hero__product { animation: rise 900ms ease 320ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.float { animation: bob 6s ease-in-out infinite; }
.float--2 { animation-delay: -1.5s; } .float--3 { animation-delay: -3s; } .float--4 { animation-delay: -2s; } .float--5 { animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.btn { transition: background-color 120ms, transform 160ms ease, box-shadow 160ms ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(214, 69, 122, 0.25); }
.btn:active { transform: none; box-shadow: none; }
.stage img, .hero__product img { transition: transform 400ms ease; }
.stage:hover img { transform: translateY(-4px); }
.card { transition: transform 200ms ease, box-shadow 200ms ease; }
.team .card:hover, .steps .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-phone); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__text > *, .hero__product, .float { animation: none; }
  .btn, .stage img, .card { transition: none; }
}
