/* Braindiz shared design base — tokens, type, buttons, pills, cards.
   Used by the landing page, the payment success screen and the Brand Brief app. */

:root {
  --bg: #00002d;
  --bg-deep: #000022;
  --surface: #3d3d5f;
  --surface-soft: rgba(61, 61, 95, 0.55);
  --surface-glass: rgba(179, 179, 255, 0.06);
  --line: rgba(179, 179, 255, 0.18);
  --line-strong: rgba(179, 179, 255, 0.34);
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.52);
  --lav: #b3b3ff;
  --lav-deep: #8c8cf5;
  --yellow: #f4ff15;
  --danger: #ffb0c1;
  --success: #9ff0c4;

  --radius-card: 25px;
  --radius-btn: 12px;
  --radius-pill: 15px;

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);

  --glow-top: radial-gradient(circle at 50% 0%, rgba(200, 180, 255, 0.35) 0%, rgba(12, 8, 50, 0) 60%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* film grain for a printed, premium feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lav); color: var(--bg); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.hl { color: var(--lav); }

/* Buttons — the neon-yellow CTA of the Hebrew site, refined */
.btn {
  --btn-bg: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: var(--btn-bg);
  color: var(--bg);
  font: 700 1.05rem/1 var(--font-display);
  letter-spacing: -0.005em;
  padding: 1.05em 1.55em;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 34px -12px rgba(244, 255, 21, 0.55), inset 0 -2px 0 rgba(0, 0, 45, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(244, 255, 21, 0.7), inset 0 -2px 0 rgba(0, 0, 45, 0.12); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { font-size: 0.92rem; padding: 0.8em 1.15em; border-radius: 10px; }
.btn--lg { font-size: 1.15rem; padding: 1.15em 1.8em; }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--lav); background: rgba(179, 179, 255, 0.06); }
.btn.is-loading { pointer-events: none; opacity: 0.8; }

/* Lavender eyebrow pill — "אי אפשר לפספס" style */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--lav);
  color: var(--bg);
  font: 700 0.95rem/1 var(--font-display);
  letter-spacing: -0.01em;
  padding: 0.62em 1.15em;
  border-radius: var(--radius-pill);
}
.pill--ghost { background: rgba(179, 179, 255, 0.1); color: var(--lav); box-shadow: inset 0 0 0 1px var(--line); }

/* Outlined label chip — package-card header style */
.chip-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.2em;
  border-radius: 10px;
  background: rgba(0, 0, 45, 0.49);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font: 700 1rem/1.2 var(--font-display);
}

.card {
  background: linear-gradient(180deg, rgba(61, 61, 95, 0.62), rgba(61, 61, 95, 0.32));
  border: 1px solid rgba(179, 179, 255, 0.14);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 20px 5px rgba(0, 0, 45, 0.5);
}

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-2); }
.checks svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--lav); margin-top: 0.12rem; }

/* Motion primitives */
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, var(--amp, -12px), 0); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  /* Hover effects on revealed elements use `translate`, border and background, so they stay quick
     instead of inheriting the 1s reveal timing and stagger delay. */
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1s var(--ease) var(--d, 0s),
    translate 0.45s var(--ease),
    border-color 0.3s, background-color 0.3s;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Pause looping animations while their section is off-screen (toggled by landing.js). */
.anim-paused, .anim-paused * { animation-play-state: paused !important; }

/* The blended grain layer is a full-viewport composite; skip it on touch devices to keep scrolling light. */
@media (hover: none) { body::after { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
