/*
 * safepay.org.il — the public landing (Mifrat feature «דף נחיתה — safepay.org.il»).
 * Colours are the app's own (src/theme/tokens.ts, the client's style of #48/#50) so the
 * site and the app read as one product; the face is the app's Discovery_Fs.
 */

@font-face {
  font-family: 'Discovery_Fs';
  src: url(/fonts/Discovery_Fs-VF.woff) format('woff');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #122d4a;
  --navy-800: #163759;      /* gradient.appBar[0] */
  --navy-700: #1b4470;      /* gradient.appBar[1] */
  --navy-600: #285e96;      /* palette.actionNavy */
  --ground: #edf5fb;        /* palette.bg */
  --ground-deep: #dfeef9;
  --card: #ffffff;
  --ink: #151e2e;           /* palette.text */
  --ink-head: #182c4a;
  --muted: #5d6b80;
  --border: #e4e7ec;
  --green: #28784b;         /* palette.actionGreen */
  --green-hi: #33925e;      /* gradient.selected[1] */
  --green-soft: #e6f2eb;
  --amber: #b26a00;         /* palette.pendingAmber */
  --amber-soft: #fff3df;
  --danger: #d80027;
  --error-soft: #ffe3e3;
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(22, 55, 89, 0.06), 0 12px 32px -12px rgba(22, 55, 89, 0.18);
  --shadow-lift: 0 24px 60px -20px rgba(18, 45, 74, 0.45);
  --gutter: 16px;
  --font: 'Discovery_Fs', 'Rubik', 'Segoe UI', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy-800);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid #5aa9ff;
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn--green {
  background: linear-gradient(180deg, var(--green-hi) -40%, var(--green) 70%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(40, 120, 75, 0.75);
}

.btn--green:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 14px 28px -10px rgba(40, 120, 75, 0.85);
}

.btn--green:active {
  transform: translateY(1px) scale(0.99);
}

.btn--small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
}

.btn--large {
  width: 100%;
  min-height: 60px;
  padding: 14px 24px;
  font-size: 19px;
  border-radius: 16px;
}

/* ------------------------------------------------------------------- header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(22, 55, 89, 0.08);
}

.top__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.top__brand img {
  width: 124px;
}

.top__tagline {
  display: none;
  margin-inline-start: auto;
  color: var(--ink-head);
  font-size: 17px;
  font-weight: 500;
}

.top .btn {
  margin-inline-start: auto;
}

.top__tagline + .btn {
  margin-inline-start: 0;
}

/* --------------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  padding-block: 36px 24px;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(40, 94, 150, 0.14), transparent 70%),
    radial-gradient(50% 40% at 90% 0%, rgba(40, 120, 75, 0.08), transparent 70%),
    var(--ground);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 32px;
}

/* the first screen arrives without waiting for the script */
.hero__copy {
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__visual {
  animation: rise 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__title {
  color: var(--ink-head);
  font-size: clamp(34px, 8.6vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__accent {
  color: var(--navy-600);
}

.hero__line {
  display: block;
  margin-top: 0.3em;
  font-size: 0.66em;
  font-weight: 700;
  line-height: 1.18;
}

.hero__lead {
  margin-block: 20px 28px;
  max-width: 34em;
  color: #35445a;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
}

.hero__lead strong {
  color: var(--ink-head);
  font-weight: 700;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(22, 55, 89, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-head);
  font-size: 15px;
  font-weight: 600;
}

.store__name {
  direction: ltr;
}

.store__soon {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}

/* the vault and the phone: the app's own pictures */
.hero__visual {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 600 / 640;
}

.hero__vault {
  position: absolute;
  inset-inline-end: -8%;
  top: -4%;
  width: 78%;
  filter: drop-shadow(0 30px 40px rgba(18, 45, 74, 0.22));
  animation: float 7s ease-in-out infinite;
}

.phone {
  position: relative;
  padding: 7px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2b3a50, #0e1828);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone::before {
  /* the island */
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 1;
  width: 30%;
  height: 16px;
  border-radius: 10px;
  background: #0b111c;
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  border-radius: 29px;
}

.hero__phone {
  position: absolute;
  inset-inline-start: 2%;
  bottom: 0;
  width: 44%;
  transform: rotate(-4deg);
}

.chip-float {
  position: absolute;
  inset-inline-start: 34%;
  bottom: 14%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(18, 45, 74, 0.45);
}

.chip-float svg {
  flex: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --------------------------------------------------------------- the cards ---- */

.how,
.scams {
  padding-block: 12px;
}

.card {
  padding: 28px 18px;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.section-title {
  color: var(--ink-head);
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step__art {
  position: relative;
  display: block;
}

.step__num {
  position: absolute;
  top: -6px;
  inset-inline-start: -14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.step__icon {
  width: 64px;
  height: 64px;
}

.step__title {
  margin-top: 10px;
  color: var(--ink-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.step__note {
  color: var(--muted);
  font-size: 15px;
}

.scams__list {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.scam {
  display: flex;
  align-items: center;
  gap: 16px;
}

.scam__art {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
}

.scam__art img {
  width: 64px;
  height: 64px;
}

.scam__badge {
  position: absolute;
  bottom: -4px;
  inset-inline-start: -6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.scam__badge--no {
  background: var(--danger);
}

.scam__badge--ask {
  background: #f2a20c;
}

.scam__text {
  color: var(--ink-head);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.scams__punch {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #35445a;
  font-size: 20px;
  text-align: center;
}

.scams__punch strong {
  color: var(--danger);
  font-weight: 800;
}

/* --------------------------------------------------------------- waitlist ---- */

.join {
  margin-top: 28px;
  padding-block: 48px 52px;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(51, 146, 94, 0.18), transparent 70%),
    linear-gradient(160deg, var(--navy-800), var(--navy-700) 60%, var(--navy-600));
  color: #fff;
}

.join__inner {
  max-width: 760px;
  text-align: center;
}

.join__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

.join__offer {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.4vw, 20px);
  text-wrap: balance;
}

.join__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px auto 0;
  max-width: 560px;
}

.join__form[hidden] {
  display: none;
}

.join__input {
  width: 100%;
  min-height: 58px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  text-align: start;
}

.join__input::placeholder {
  color: #8a96a8;
}

.join__input:focus {
  border-color: var(--green-hi);
  outline: none;
  box-shadow: 0 0 0 4px rgba(51, 146, 94, 0.35);
}

.join__input[aria-invalid='true'] {
  border-color: #ff8a8a;
}

.join__submit {
  position: relative;
  min-height: 58px;
  padding: 12px 26px;
  font-size: 18px;
  white-space: nowrap;
}

.join__submit[aria-busy='true'] {
  cursor: progress;
}

.join__submit[aria-busy='true'] .join__label {
  visibility: hidden;
}

.spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 800ms linear infinite;
}

.join__submit[aria-busy='true'] .spinner {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.join__status {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
}

.join__status:empty {
  display: none;
}

.join__status[data-kind='error'] {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--error-soft);
  color: #8c1022;
}

.join__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 28px auto 0;
  max-width: 560px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.join__done[hidden] {
  display: none;
}

.join__done-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--green-hi);
  color: #fff;
}

.join__done-title {
  font-size: 24px;
  font-weight: 800;
}

.join__done-text {
  color: rgba(255, 255, 255, 0.86);
}

.join__consent {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.join__consent a {
  color: #fff;
}

/* ------------------------------------------------------------------- footer ---- */

.foot {
  padding-block: 28px 36px;
  background: #fff;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot__logo {
  width: 110px;
}

.foot__mail {
  color: var(--navy-600);
  font-weight: 600;
  direction: ltr;
}

.foot__copy {
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- arrival ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__vault,
  .hero__copy,
  .hero__visual {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* ------------------------------------------------------------- wider screens ---- */

@media (min-width: 560px) {
  .join__form {
    flex-direction: row;
  }

  .join__submit {
    flex: none;
  }

  .btn--large {
    width: auto;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }

  .card {
    padding: 40px 36px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step:not(:last-child)::after {
    /* the way from one icon to the next, in the reading direction (12px is the column gap) */
    content: '';
    position: absolute;
    top: 32px;
    inset-inline-start: calc(50% + 50px);
    width: calc(100% + 12px - 100px);
    border-top: 2px dashed #c3d4e6;
  }

  .scams__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .scam {
    flex-direction: column;
    text-align: center;
  }

  .scam__art,
  .scam__art img {
    width: 84px;
    height: 84px;
  }

  .top__tagline {
    display: block;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: 64px 48px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
  }

  .hero__visual {
    width: 100%;
    max-width: 480px;
  }

  .step__icon {
    width: 72px;
    height: 72px;
  }

  .step:not(:last-child)::after {
    top: 36px;
  }

  .step__title {
    font-size: 19px;
  }

  .how,
  .scams {
    padding-block: 16px;
  }
}
