/* ==========================================================================
   מרציפן — אתר תדמיתי
   מבית תאנה סוכנות לביטוח
   ========================================================================== */

:root {
  --brand-1: #6d4bd6;   /* סגול */
  --brand-2: #23b3c9;   /* טורקיז */
  --brand-3: #8a5cf0;
  --ink: #23375f;        /* כחול עמוק - כותרות */
  --ink-2: #45557d;
  --ink-soft: #6b7a99;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-tint: #f0f1fb;
  --teena: #4a2a66;
  --teena-cream: #f4efe6;
  --ok: #1aa179;
  --warn: #e0a100;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(35, 55, 95, .06), 0 4px 16px rgba(35, 55, 95, .06);
  --shadow-md: 0 8px 30px rgba(35, 55, 95, .10), 0 2px 8px rgba(35, 55, 95, .06);
  --shadow-lg: 0 30px 70px rgba(35, 55, 95, .16);
  --grad: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-3) 45%, var(--brand-2) 100%);
  --maxw: 1160px;
  --font: "IBM Plex Sans Hebrew", "Assistant", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

html { direction: rtl; }

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* site-wide logo watermark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("assets/marzipan-icon.png");
  background-repeat: no-repeat;
  background-position: right -12vmax top -7vmax;
  background-size: 46vmax;
  opacity: .05;
  pointer-events: none;
}
main, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.4px; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

section { padding-block: clamp(56px, 8vw, 104px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  color: var(--brand-1);
  background: var(--bg-tint);
  border: 1px solid #e2ddf7;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }

.section-head { max-width: 640px; margin-bottom: 46px; }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background-image: var(--grad);
  box-shadow: 0 10px 24px rgba(109, 75, 214, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(109, 75, 214, .40); }
.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand-1); color: var(--brand-1); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }
.btn-white { background: #fff; color: var(--brand-1); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--brand-1); text-decoration: none;
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(-4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; gap: 36px;
  height: 74px;
}
.header-cta { margin-inline-start: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink-2);
  transition: color .15s ease;
}
.nav a:hover { color: var(--brand-1); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }
/* the CTA that lives inside the nav is only for the mobile drop-down */
.nav > .btn { display: none; }

@media (max-width: 940px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; inset-inline: 12px; top: 70px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 12px; box-shadow: var(--shadow-lg);
  }
  .nav.open a { padding: 12px 14px; border-radius: 10px; }
  .nav.open a:hover { background: var(--bg-soft); }
  .nav.open > .btn { display: inline-flex; margin-top: 6px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(46px, 6vw, 78px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -18%; top: -28%;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(138, 92, 240, .20), rgba(35, 179, 201, .10) 55%, transparent 72%);
  filter: blur(8px); z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.hero h1 { color: var(--ink); display: flex; flex-direction: column; gap: .35rem; }
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .brand-name {
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 700; letter-spacing: -1px; line-height: 1;
}
.hero h1 .h1-sub {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 700; color: var(--ink); line-height: 1.28;
}
.hero .lead { font-size: 1.18rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.hero-note img { height: 30px; width: auto; opacity: .95; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; }
}

/* ---------- hero illustration (static) ---------- */
.orbit {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-core { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit-core::before {
  content: ""; position: absolute;
  width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 92, 240, .22), rgba(35, 179, 201, .1) 55%, transparent 72%);
  filter: blur(6px);
}
.orbit-core img {
  position: relative; width: min(224px, 56%); height: auto;
  filter: drop-shadow(0 22px 44px rgba(35, 55, 95, .18));
}
.node {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding-block: 7px; padding-inline-start: 7px; padding-inline-end: 16px;
  font-size: .85rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.node-ic {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
}
.node-ic svg { width: 14px; height: 14px; }
.node.n-top    { top: 0;    left: 50%;  transform: translateX(-50%); }
.node.n-bottom { bottom: 0; left: 50%;  transform: translateX(-50%); }
.node.n-start  { top: 43%;  inset-inline-start: 0; }
.node.n-end    { top: 43%;  inset-inline-end: 0; }
@media (max-width: 620px) {
  /* the side pills would collide with the mark on a narrow screen */
  .orbit { max-width: 330px; }
  .node.n-start, .node.n-end { display: none; }
  .node { font-size: .78rem; padding-inline-end: 13px; gap: 7px; }
  .node-ic { width: 24px; height: 24px; }
  .node-ic svg { width: 12px; height: 12px; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--bg-soft); border-block: 1px solid var(--line); padding-block: 34px; }
.trust p { text-align: start; font-weight: 700; color: var(--ink-soft); font-size: .9rem; letter-spacing: .03em; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.chips span {
  font-weight: 700; font-size: .92rem; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
}

/* ---------- features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dfe2f0; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(109, 75, 214, .12), rgba(35, 179, 201, .12));
  color: var(--brand-1);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* ---------- how it works ---------- */
.how { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.step .n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--grad); margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- highlight / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--ok); }
.checklist-2col { margin-top: 0; grid-template-columns: 1fr 1fr; gap: 16px 44px; }
.checklist-2col li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .checklist-2col { grid-template-columns: 1fr; } }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 26px;
}
.panel-title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }

/* ---------- dashboards / tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-bottom: 30px; }
.tab {
  font-family: inherit; font-weight: 700; font-size: .96rem;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  transition: all .15s ease;
}
.tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.tab:hover:not([aria-selected="true"]) { border-color: var(--brand-1); color: var(--brand-1); }

.tabpanel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 34px;
}
.tabpanel[hidden] { display: none; }
@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; gap: 26px; } }
.tabpanel h3 { font-size: 1.35rem; }
.tabpanel ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.tabpanel li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink-2); }
.tabpanel li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
  flex-shrink: 0; margin-top: 9px;
}
.tabpanel .visual {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm);
}
.stat-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.stat-line:last-child { border-bottom: 0; }
.stat-line .lbl { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.stat-line .num { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.stat-line .num.ok { color: var(--ok); }

/* ---------- teena ---------- */
.teena { background: var(--teena-cream); }
.teena .split { align-items: center; }
.teena-logo-wrap {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.teena-logo-wrap img { max-width: 340px; width: 100%; }
.teena h2 { color: var(--teena); }
.teena .eyebrow { color: var(--teena); background: #efe6f5; border-color: #e2d3ec; }
.teena .eyebrow::before { background: var(--teena); }
.teena .link-arrow { color: var(--teena); }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa button {
  width: 100%; text-align: start; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.06rem; font-weight: 700; color: var(--ink);
  padding: 22px 44px 22px 0; position: relative;
}
.qa button::after {
  content: "+"; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand-1); transition: transform .2s ease;
}
.qa button[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.qa .a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.qa .a p { padding-bottom: 22px; margin: 0; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta {
  background: var(--grad); color: #fff; border-radius: 0;
  position: relative; overflow: hidden;
}
.cta .container { position: relative; z-index: 1; }
.cta-mark {
  position: absolute; inset-inline-end: -46px; bottom: -60px;
  width: 280px; height: auto; opacity: .14;
  filter: brightness(0) invert(1);
  pointer-events: none; user-select: none;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 52ch; }
.cta .actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; margin-top: 26px; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-1); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-info { display: grid; gap: 18px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item .ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--brand-1);
}
.contact-info .item .k { font-weight: 700; color: var(--ink); }
.contact-info .item a { color: var(--brand-1); text-decoration: none; font-weight: 600; }
.form-note { font-size: .84rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 54px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer img { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { font-size: .92rem; max-width: 38ch; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
