:root {
  --ink: #182028;
  --muted: #5f6874;
  --paper: #fffaf2;
  --surface: #ffffff;
  --soft: #eef7fb;
  --line: #dfe7ea;
  --green: #128568;
  --green-dark: #0b5f4d;
  --mint: #c9f4df;
  --blue: #246bfe;
  --blue-soft: #e7efff;
  --yellow: #ffc857;
  --coral: #ff6f61;
  --violet: #7357ff;
  --aqua: #28c7b7;
  --shadow: 0 20px 60px rgba(24, 32, 40, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f4fbff 0%, var(--paper) 42rem),
    var(--paper);
}

body[dir="rtl"] {
  font-family: Arial, "Noto Sans Hebrew", system-ui, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 232, 224, 0.84);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--blue), var(--violet) 52%, var(--aqua));
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(36, 107, 254, 0.26);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switcher a {
  min-width: 2.2rem;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.lang-switcher a[aria-current="true"] {
  background: linear-gradient(135deg, var(--ink), #293847);
  color: white;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: linear-gradient(135deg, var(--green-dark), #1554d8);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--green);
  background: var(--soft);
}

.button.small {
  min-height: 2.4rem;
  padding: 0.58rem 0.8rem;
  font-size: 0.92rem;
}

.checkout-return {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 32, 40, 0.08);
}

.checkout-return-success {
  border-color: rgba(18, 133, 104, 0.28);
  background: #ecfff5;
}

.checkout-return-failed {
  border-color: rgba(255, 111, 97, 0.34);
  background: #fff2ef;
}

.checkout-return-cancelled {
  border-color: rgba(36, 107, 254, 0.22);
  background: var(--blue-soft);
}

.checkout-return strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 900;
}

.checkout-return p {
  margin: 0;
  color: var(--muted);
}

.checkout-return-actions {
  display: flex;
  gap: 0.55rem;
}

.section,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  min-height: calc(100vh - 74px);
  padding: clamp(3rem, 7vw, 5.5rem) max(1rem, calc((100% - 1120px) / 2)) 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.92) 35%, rgba(255, 250, 242, 0.4) 62%, rgba(255, 250, 242, 0.03) 100%),
    url("hero-wow-digest-v2.jpg") center / cover no-repeat;
}

body[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.88) 38%, rgba(255, 250, 242, 0.28) 66%, rgba(255, 250, 242, 0.02) 100%),
    url("hero-wow-digest-rtl-v1.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 9rem;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--paper));
}

.hero > div:first-child {
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(18, 133, 104, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0.9rem;
}

.microcopy {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.proof-item {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.proof-item strong {
  display: block;
  font-size: 0.95rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.83rem;
}

.phone-stage {
  display: grid;
  gap: 1rem;
}

.hero .phone-stage {
  display: none;
}

.chat-cloud,
.digest-card,
.alert-card,
.checkout-box {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-cloud {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.chat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.45rem;
  background: #f6f8f5;
}

.chat-row b {
  display: block;
  font-size: 0.92rem;
}

.chat-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.badge {
  flex: 0 0 auto;
  min-width: 2rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.digest-card {
  padding: 1rem;
  transform: translateY(-0.5rem);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 900;
}

.card-title span {
  color: var(--green);
  font-size: 0.84rem;
}

.digest-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.digest-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.95rem;
}

.digest-list strong {
  display: grid;
  min-width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 0.35rem;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 0.8rem;
}

.alert-card {
  display: grid;
  gap: 0.35rem;
  width: min(92%, 24rem);
  margin-inline-start: auto;
  padding: 0.9rem 1rem;
  border-color: rgba(239, 129, 109, 0.4);
}

.alert-card b {
  color: #a34131;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-header {
  max-width: 44rem;
  margin-bottom: 1.6rem;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.section-header p,
.muted {
  color: var(--muted);
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

.feature,
.trust-box,
.step,
.price-card,
.faq details,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.feature,
.trust-box,
.step,
.legal-card {
  padding: 1.05rem;
}

.feature-icon {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--mint), var(--blue-soft));
  color: var(--green-dark);
  font-weight: 900;
}

.example-band,
.trust-band,
.pricing-band {
  background: linear-gradient(180deg, #f2f9ff, #f7fff9);
}

.example-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.5rem;
  align-items: center;
}

.todo-box {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 0.5rem;
  background: #f8fbf7;
}

.todo-box ol {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: steps;
}

.step {
  position: relative;
  padding-top: 3.3rem;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.4rem;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-box ul {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.trust-box li + li {
  margin-top: 0.45rem;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
}

.price-card.highlight {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.save-badge {
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #5b4300;
  font-size: 0.82rem;
  font-weight: 900;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 850px;
  margin: 0 auto;
}

.faq details {
  padding: 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.final-cta {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
  text-align: center;
}

.final-cta p {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta .button {
  background: var(--yellow);
  color: var(--ink);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.checkout-main {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) 0;
}

.checkout-box {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.85fr);
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
}

.checkout-form {
  display: grid;
  align-content: start;
  min-width: 0;
}

.checkout-form h1 {
  font-size: clamp(2.35rem, 4.2vw, 4.6rem);
  line-height: 1;
}

.checkout-summary {
  min-width: 0;
  padding: 1rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, 0.08), rgba(40, 199, 183, 0.12)),
    var(--soft);
}

.checkout-summary h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.plan-picker {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  border: 0;
}

.plan-picker legend {
  margin-bottom: 0.65rem;
  font-weight: 900;
}

.plan-option {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 4.2rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
}

.plan-option.selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue-soft), #f4fffb);
  box-shadow: 0 12px 28px rgba(36, 107, 254, 0.12);
}

.plan-option input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--blue);
}

.plan-option b,
.plan-option small {
  display: block;
}

.plan-option small {
  color: var(--muted);
}

.field-label {
  margin-top: 0.75rem;
  font-weight: 850;
}

.text-field {
  width: 100%;
  min-height: 2.9rem;
  margin-top: 0.35rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.text-field:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(36, 107, 254, 0.14);
}

.terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.92rem;
}

.terms-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  accent-color: var(--green);
}

.terms-check a {
  color: var(--blue);
  font-weight: 800;
}

.checkout-note {
  margin-top: -0.25rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(36, 107, 254, 0.2);
  border-radius: 0.5rem;
  background: var(--blue-soft);
  color: #1f478f;
  font-size: 0.9rem;
}

.checkout-status {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
}

.checkout-status[data-state="success"] {
  border-color: rgba(18, 133, 104, 0.34);
  background: #ecfff5;
  color: var(--green-dark);
}

.checkout-status[data-state="warning"],
.checkout-status[data-state="failed"] {
  border-color: rgba(255, 111, 97, 0.34);
  background: #fff2ef;
  color: #9d3428;
}

.checkout-status[data-state="cancelled"] {
  border-color: rgba(36, 107, 254, 0.26);
  background: var(--blue-soft);
  color: #183f9a;
}

.mock-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.outcome-button {
  min-height: 2.35rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.outcome-button:hover,
.outcome-button:focus {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.checkout-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 1rem 0;
}

.checkout-flow span {
  display: grid;
  min-height: 2rem;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.checkout-flow span:first-child,
.checkout-flow span:nth-child(2) {
  background: var(--mint);
  color: var(--green-dark);
}

.event-log {
  overflow: auto;
  max-width: 100%;
  max-height: 12rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  background: #111a15;
  color: #d7f7df;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .hero,
  .example-layout,
  .checkout-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.94) 40%, rgba(255, 250, 242, 0.82) 100%),
      url("hero-wow-digest-v2.jpg") center / cover no-repeat;
  }

  body[dir="rtl"] .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.99) 0%, rgba(255, 250, 242, 0.96) 48%, rgba(255, 250, 242, 0.88) 100%),
      url("hero-wow-digest-rtl-v1.jpg") 42% center / cover no-repeat;
  }

  .hero .phone-stage {
    display: grid;
    max-width: 34rem;
    margin-top: 1.4rem;
  }

  .hero .digest-card {
    transform: none;
  }

  h1 {
    max-width: 12ch;
  }

  .grid-3,
  .grid-4,
  .trust-grid,
  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .nav {
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .checkout-return {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 0.98;
  }

  .hero-proof {
    display: none;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .nav-actions,
  .checkout-return-actions {
    align-items: stretch;
  }

  .checkout-return-actions {
    flex-direction: column;
  }

  .lang-switcher {
    flex: 1;
    justify-content: space-between;
  }

  .lang-switcher a {
    flex: 1;
  }
}

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