/* Miraj landing - brand: navy #122D3C, teal #2A8B8C and the mark's teal-to-navy gradient (LOGO MIRAJ.psd), Rubik */
:root {
  --bg: #f3f5f6;
  --surface: #e7edef;
  --card: #ffffff;
  --ink: #122d3c;
  --muted: #4a6270;
  --accent: #237b7c;
  --navy: #122d3c;
  --navy-2: #0c2230;
  --on-dark: #ffffff;
  --on-dark-2: #a9c3ca;
  --teal-light: #5cc3c2;

  --grad: linear-gradient(135deg, #2b8a8b 0%, #28606d 55%, #283f55 100%);
  --grad-soft: linear-gradient(135deg, #2a8384 0%, #1f5866 100%);
  --grad-deep: linear-gradient(160deg, #122d3c 0%, #15394a 55%, #1b5260 100%);

  --t-hero: clamp(38px, 4.6vw, 68px);
  --t-display: clamp(28px, 3vw, 42px);
  --t-statement: clamp(18px, 1.5vw, 21px);
  --t-body: 16px;
  --t-small: 14px;

  --m: clamp(16px, 2.4vw, 32px);
  --box: 1200px;
  --pad: max(var(--m), calc((100vw - var(--box)) / 2));
  --gap: clamp(90px, 10vw, 150px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Rubik", system-ui, sans-serif; font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }
section[id], footer[id] { scroll-margin-top: 24px; }
a, button, summary, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 10; inset-inline-start: var(--m); top: -60px; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; font-size: var(--t-small); }
.skip:focus { top: 16px; }

/* buttons: one shape (fully round) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: inherit;
  background: var(--grad-soft); color: #fff; font-weight: 500; font-size: var(--t-small);
  padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
  transition: filter .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn.big { font-size: var(--t-body); padding: 14px 30px; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); filter: none; }

/* bar: links + action on the right, logo on the left */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 22px var(--pad); }
.brand { margin-inline-start: auto; }
.brand img { height: 28px; width: auto; }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; font-size: var(--t-small); font-weight: 500; position: relative; }
.links a::after { content: ""; position: absolute; inset: auto 0 -6px 0; height: 2px; background: var(--teal-light);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.links a:hover::after { transform: scaleX(1); }
.bar.on-dark { color: #fff; }

/* hero: dark navy, a quiet grid, the floating 3D mark */
.hero {
  position: relative; overflow: hidden; min-height: min(100svh, 860px); color: var(--on-dark);
  background:
    radial-gradient(60% 70% at 18% 52%, rgba(43, 138, 139, .30), transparent 70%),
    radial-gradient(50% 60% at 95% 0%, rgba(43, 138, 139, .14), transparent 70%),
    var(--navy);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 120px var(--pad) 80px;
}
.hero::before { /* a fine dot grid, fading out at the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 85%);
  mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 85%);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.04em; max-width: 13ch; }
.hero .lead { margin-top: 22px; font-size: var(--t-statement); line-height: 1.55; color: var(--on-dark-2); max-width: 44ch; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--t-small); color: var(--on-dark-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 10px var(--teal-light); }

.orb { position: relative; height: clamp(300px, 34vw, 470px); display: grid; place-items: center; perspective: 1100px; }
.glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 195, 194, .35), rgba(43, 138, 139, .10) 45%, transparent 70%);
  animation: pulse 6s ease-in-out infinite; }
.mark3d { position: relative; width: clamp(200px, 25vw, 340px); aspect-ratio: 342 / 185; transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite; transition: rotate .6s var(--ease); }
.spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: turn 9s ease-in-out infinite; }
.spin img { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(var(--z, 0)); }
.spin .face { transform: translateZ(1px); filter: drop-shadow(0 0 18px rgba(92, 195, 194, .35)); }
.floor { position: absolute; bottom: 8%; width: 46%; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); animation: shadow 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-18px); } }
@keyframes turn { 0%, 100% { transform: rotateX(12deg) rotateY(-28deg); } 50% { transform: rotateX(6deg) rotateY(28deg); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes shadow { 50% { transform: scaleX(.82); opacity: .6; } }

/* plans */
.plans { padding: clamp(70px, 8vw, 110px) var(--pad) 0; }
.starter {
  display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 22px; text-decoration: none;
  padding: 20px 26px; border-radius: var(--r); background: var(--card); transition: transform .3s var(--ease), background .3s var(--ease);
}
.starter:hover { transform: translateY(-3px); }
.st-tag { background: var(--grad); color: #fff; font-size: var(--t-small); font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.st-name { font-size: var(--t-statement); font-weight: 700; }
.st-what { color: var(--muted); font-size: var(--t-small); }
.st-price { display: flex; align-items: baseline; gap: 8px; }
.st-price b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.st-price small { font-size: var(--t-small); color: var(--muted); }

.plan-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan a {
  height: 100%; display: grid; grid-template-rows: auto auto auto auto 1fr auto auto; gap: 8px; text-decoration: none; position: relative;
  padding: 30px 24px 24px; background: var(--card); border-radius: var(--r);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan a:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(18, 45, 60, .45); }
.plan.is-pick a { background: var(--grad); color: #fff; }
.plan.is-pick a::before { content: "מומלץ"; position: absolute; top: -12px; inset-inline-start: 24px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; padding: 3px 12px; border-radius: 999px; }
.p-name { font-size: var(--t-statement); font-weight: 700; }
.p-price { display: flex; align-items: baseline; gap: 8px; }
.p-price b { font-size: clamp(32px, 2.8vw, 40px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.p-price small { font-size: var(--t-small); opacity: .8; }
.p-what b { font-weight: 700; }
.p-per { font-size: var(--t-small); font-weight: 500; color: var(--accent); }
.plan.is-pick .p-per { color: #bfe7e6; }
.p-feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; font-size: var(--t-small); }
.p-feats li { display: flex; align-items: center; gap: 9px; }
.p-feats svg, .perks svg { flex: none; width: 18px; height: 18px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-feats .on svg { stroke: var(--accent); }
.p-feats .off { opacity: .45; }
.p-feats .off svg { stroke: currentColor; }
.plan.is-pick .p-feats .on svg { stroke: #fff; }
.p-meta { font-size: 13px; opacity: .75; margin-top: 4px; }
.p-go { margin-top: 12px; text-align: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 20px;
  font-size: var(--t-small); font-weight: 500; transition: filter .2s var(--ease); }
.plan a:hover .p-go, .starter:hover .p-go { filter: brightness(1.3); }
.plan.is-pick .p-go { background: #fff; color: var(--ink); }
.starter .p-go { margin-top: 0; padding-inline: 26px; }
.perks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: var(--t-small); }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks svg { stroke: var(--accent); }
.vat { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }

/* flow: an interactive stepper */
.flow { margin-top: var(--gap); padding: 0 var(--pad); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 36px; inset-inline: 10%; height: 3px; border-radius: 3px; }
.steps::before { background: var(--surface); }
.steps::after { background: linear-gradient(270deg, #2b8a8b, #283f55); transform-origin: right; transform: scaleX(var(--p, 0));
  transition: transform .7s var(--ease); }
.step { position: relative; z-index: 1; display: grid; justify-items: center; }
.step button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 14px; padding: 0 6px; }
.s-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--card);
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
.s-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s; }
.s-name { font-weight: 700; font-size: var(--t-statement); transition: color .3s; }
.step button:hover .s-icon { transform: translateY(-4px); }
.step.done .s-icon { background: #d9ecec; }
.step.on .s-icon { background: var(--grad); transform: translateY(-4px) scale(1.08); }
.step.on .s-icon svg { stroke: #fff; }
.step.on .s-name { color: var(--accent); }
.s-text { display: none; }
.step-text { margin: 30px auto 0; max-width: 52ch; min-height: 3.2em; text-align: center; font-size: var(--t-statement); line-height: 1.5; }
.step-text.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* the guide (stays as it was, until the new video) */
.guide {
  margin-top: var(--gap); padding: clamp(70px, 8vw, 110px) var(--pad); background: var(--grad-deep); color: var(--on-dark);
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 40px; row-gap: 40px; align-items: center;
}
.stack { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; font-weight: 800; letter-spacing: -0.05em;
  font-size: clamp(56px, 8vw, 130px); line-height: .9; white-space: nowrap; color: var(--on-dark-2); }
.stack .solid { color: #fff; }
.phone {
  grid-column: 2; grid-row: 1 / span 2; justify-self: start; margin-inline-start: -6vw; position: relative; z-index: 2;
  width: clamp(240px, 22vw, 310px); aspect-ratio: 9 / 18.5; background: #0a1820; border-radius: 40px; padding: 12px; transform: rotate(-4deg);
}
.screen { height: 100%; border-radius: 30px; background: #e9eef0; padding: 24px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; color: var(--ink);
  opacity: 0; transform: translateY(10px); animation: chat 12s var(--ease) infinite; }
.msg.me { background: #fff; align-self: flex-start; }
.msg.them { background: #cfe7e7; align-self: flex-end; }
.msg.design { padding: 6px; width: 70%; }
.msg.design img { border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.msg.design b { display: block; padding: 6px 4px 2px; font-size: 14px; }
.m2 { animation-delay: 1.2s; } .m3 { animation-delay: 2.6s; } .m4 { animation-delay: 4.2s; }
@keyframes chat { 0% { opacity: 0; transform: translateY(10px); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
.guide-copy { grid-column: 1; grid-row: 2; display: grid; gap: 14px; max-width: 46ch; }
.guide-copy h2 { font-size: var(--t-statement); }

/* faq: two columns, rows on a soft ground, brand colour on hover */
.faq { margin-top: var(--gap); padding: 0 var(--pad); }
.faq h2 { font-size: var(--t-display); text-align: center; }
.qs { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.q-col { display: grid; gap: 10px; }
.qs details { border-radius: 12px; background: var(--card); overflow: hidden; }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 16px 20px; font-weight: 500; transition: background .25s var(--ease), color .25s var(--ease); }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; flex: none; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) translateY(-2px); transition: transform .3s var(--ease); }
.qs summary:hover, .qs details[open] summary { background: var(--grad-soft); color: #fff; }
.qs details[open] summary::after { transform: rotate(135deg) translateY(-2px); }
.qs details p { padding: 14px 20px 18px; color: var(--ink); }

/* close: contact + footer */
.close { margin-top: var(--gap); background: var(--grad-deep); color: var(--on-dark); padding: clamp(56px, 6vw, 80px) var(--pad) 28px;
  display: grid; gap: 48px; }
.contact { display: grid; justify-items: center; gap: 20px; }
.contact h2 { font-size: var(--t-display); }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); gap: 12px; }
.way { display: flex; align-items: center; gap: 16px; text-decoration: none; text-align: right; padding: 14px 18px;
  border-radius: 14px; background: rgba(255, 255, 255, .07); transition: background .25s var(--ease), transform .25s var(--ease); }
.way:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.way svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--grad);
  fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.way > span { display: grid; gap: 1px; min-width: 0; }
.way b { font-size: 13px; font-weight: 500; color: var(--on-dark-2); }
.way .ltr { direction: ltr; text-align: right; font-size: 17px; font-weight: 700; white-space: nowrap; }
.send { width: min(100%, 672px); display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 8px; padding: 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .07); }
.send input { min-width: 0; font: inherit; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .06); border: 0;
  border-radius: 999px; padding: 11px 18px; }
.send input::placeholder { color: var(--on-dark-2); }
.send input:focus { outline: 2px solid var(--teal-light); outline-offset: 0; }
.send-note { min-height: 1.4em; font-size: var(--t-small); color: var(--on-dark-2); }
.close-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; font-size: 13px; color: var(--on-dark-2);
  padding-top: 8px; }
.close-meta img { height: 20px; width: auto; }
.meta-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-inline-start: auto; }
.close-meta a { color: var(--on-dark); text-decoration: none; }
.close-meta a:hover { text-decoration: underline; }
/* who runs the service - centred under the footer, Hebrew + English */
.owner { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); text-align: center;
  font-size: 13px; color: var(--on-dark-2); display: grid; gap: 2px; }
.owner p { margin: 0; }
.owner b { color: var(--on-dark); font-weight: 500; }

/* the terms page */
.doc { padding: 120px var(--pad) 80px; max-width: 760px; display: grid; gap: 18px; }
.doc h1 { font-size: var(--t-display); }
.doc h2 { font-size: var(--t-statement); margin-top: 20px; }

/* entrances */
[data-rise] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise]:not(.in) { opacity: 0; transform: translateY(20px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise]:not(.in) { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
}

/* tablet */
@media (max-width: 1000px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
  .hero h1, .hero .lead { margin-inline: auto; }
  .hero-actions, .facts { justify-content: center; }
  .orb { order: -1; height: 260px; }
  .plan-list { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .starter { grid-template-columns: auto 1fr auto; }
  .st-what { grid-column: 1 / -1; grid-row: 2; }
  .starter .p-go { grid-column: 3; grid-row: 1; }
  .st-price { grid-column: 2; grid-row: 1; justify-self: end; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .s-icon { width: 56px; height: 56px; border-radius: 17px; }
  .s-icon svg { width: 26px; height: 26px; }
  .steps::before, .steps::after { top: 28px; }
  .s-name { font-size: 15px; }
  .guide { grid-template-columns: 1fr; }
  .stack, .phone, .guide-copy { grid-column: 1; grid-row: auto; }
  .phone { justify-self: center; margin: 0; }
  .qs { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
}

/* phone */
@media (max-width: 640px) {
  .hero h1 { font-size: 11vw; }
  .hero-actions .btn { flex: 1; }
  .orb { height: 210px; }
  .plan-list { grid-template-columns: 1fr; }
  .starter { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .st-tag { justify-self: start; }
  .st-name { grid-row: 2; }
  .st-price { grid-column: 2; grid-row: 2; }
  .st-what { grid-row: 3; }
  .starter .p-go { grid-column: 1 / -1; grid-row: 4; }
  .s-icon { width: 46px; height: 46px; border-radius: 14px; }
  .s-icon svg { width: 22px; height: 22px; }
  .steps::before, .steps::after { top: 23px; }
  .s-name { font-size: 13px; }
  .stack { font-size: 17vw; }
  .ways { grid-template-columns: 1fr; width: 100%; }
  .send { grid-template-columns: 1fr; border-radius: 22px; }
  .close-meta { flex-direction: column; align-items: flex-start; }
  .meta-links { margin-inline-start: 0; }
}
