@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --navy: #0b2a4a;
  --brand: #075fe4;
  --brand-deep: #0044ad;
  --ink: #172033;
  --muted: #5d687d;
  --line: rgba(7, 95, 228, 0.12);
  --paper: #ffffff;
  --page: #f5f9ff;
  --phone: #1b2430;
  --glow: rgba(7, 95, 228, 0.22);
  font-family: Heebo, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--page);
  background-image:
    url("./assets/routes-bg.svg"),
    linear-gradient(rgba(7, 95, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 95, 228, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, #e1fbef 0, transparent 28rem),
    radial-gradient(circle at 92% 8%, #dceaff 0, transparent 26rem);
  background-size: 1100px auto, 56px 56px, 56px 56px, auto, auto;
  background-position: center 120px, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat, no-repeat, no-repeat;
  background-attachment: fixed, scroll, scroll, scroll, scroll;
  color: var(--ink);
  font-family: Heebo, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

::selection {
  background: rgba(7, 95, 228, 0.18);
  color: var(--ink);
}

.guide-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 18px 20px 36px;
  color: var(--ink);
}

.guide-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(234, 242, 255, 0.35), transparent 88%);
}

.guide-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 95, 228, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 95, 228, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: -90px;
  right: -50px;
  background: radial-gradient(circle, rgba(7, 95, 228, 0.22), transparent 68%);
}

.orb-b {
  width: 240px;
  height: 240px;
  bottom: -70px;
  left: -40px;
  background: radial-gradient(circle, rgba(25, 169, 125, 0.16), transparent 70%);
}

.guide-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.guide-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  text-decoration: none;
}

.guide-logo {
  display: block;
  width: min(132px, 38vw);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(30, 70, 120, 0.12));
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border: 1px solid rgba(7, 95, 228, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 8px 20px rgba(11, 55, 116, 0.06);
}

.guide-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(7, 95, 228, 0.12);
}

.guide-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.guide-lead {
  margin: 0;
  max-width: 22em;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
  line-height: 1.5;
}

.watch-video {
  margin: 14px 0 0;
}

.watch-video a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 64px;
}

.steps,
.steps > li,
.step {
  list-style: none;
}

.steps {
  margin: 0;
  padding: 0;
}

.steps > li::marker,
.step::marker {
  content: none;
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px 20px 24px;
  border: 1px solid rgba(15, 42, 74, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(11, 55, 116, 0.07);
  backdrop-filter: blur(10px);
}

.step-index {
  display: none;
}

.step-body h2,
.step-body h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.step-body h2::before,
.step-body h3::before {
  content: none;
}

.step:not(.is-full-screen) .step-body > h2,
.step:not(.is-full-screen) .step-body > h3 {
  margin: -22px -20px 18px;
  padding: 18px 24px;
  border-radius: 23px 23px 0 0;
  background: #eaf2ff;
  border-top: 1px solid rgba(15, 42, 74, 0.2);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.step-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body strong {
  color: var(--ink);
  font-weight: 800;
}

.step.is-full-screen {
  width: 100vw;
  max-width: 100vw;
  margin: 8px calc(50% - 50vw) 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  grid-template-columns: 1fr;
  justify-items: center;
}

.step.is-full-screen .step-index {
  display: none;
}

.step.is-full-screen .step-body {
  width: 100%;
}

body.guide-unnumbered .step-index {
  display: none;
}

body.guide-unnumbered .step {
  grid-template-columns: 1fr;
}

.full-screen-note {
  box-sizing: border-box;
  width: 100%;
  padding: 48px 22px 52px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(232, 242, 255, 0.94)),
    linear-gradient(rgba(7, 95, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 95, 228, 0.05) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  border-block: 1px solid rgba(7, 95, 228, 0.14);
}

.full-screen-note p {
  margin: 0 auto;
  max-width: 16em;
  color: var(--navy);
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.full-screen-note.is-chapter {
  padding: 52px 22px 56px;
  background:
    radial-gradient(circle at 50% 22%, rgba(7, 95, 228, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(226, 239, 255, 0.96)),
    linear-gradient(rgba(7, 95, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 95, 228, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

.chapter-phone {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
}

.chapter-ring,
.chapter-ring-delay {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(7, 95, 228, 0.32);
  animation: chapter-ring 2s ease-out infinite;
}

.chapter-ring-delay {
  animation-delay: 0.7s;
}

@keyframes chapter-ring {
  0% {
    transform: scale(0.78);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.chapter-handset {
  position: absolute;
  inset: 30px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid rgba(7, 95, 228, 0.35);
  box-shadow: 0 10px 22px rgba(7, 95, 228, 0.12);
}

.chapter-handset svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: var(--brand);
}

.full-screen-note.is-chapter .chapter-heading {
  margin: 0 auto 10px;
  color: var(--brand);
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing: 0.18em;
}

.full-screen-note.is-intro-stack {
  padding: 28px 22px 32px;
}

.full-screen-note.is-intro-stack > * + * {
  margin-top: 14px;
}

.full-screen-note.is-intro-stack .is-chapter {
  padding: 0;
  background: none;
  border: 0;
}

.full-screen-note.is-intro-stack .chapter-phone {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
}

.full-screen-note.is-intro-stack .chapter-ring,
.full-screen-note.is-intro-stack .chapter-ring-delay {
  inset: 4px;
}

.full-screen-note.is-intro-stack .chapter-handset {
  inset: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(7, 95, 228, 0.12);
}

.full-screen-note.is-intro-stack .chapter-handset svg {
  width: 18px;
  height: 18px;
}

.full-screen-note.is-intro-stack .chapter-heading {
  margin: 0 auto 4px;
  color: var(--brand);
  font-size: clamp(13px, 1.8vw, 16px);
  letter-spacing: 0.16em;
}

.full-screen-note.is-intro-stack .is-chapter p:last-child {
  margin: 0 auto;
}

.shot {
  margin: 0;
}

.shot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 4px;
}

.phone {
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 32px;
  background: var(--phone);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.phone-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  border-radius: 22px;
  overflow: hidden;
  background: #e8f2ff;
}

.phone-screen.has-shot {
  min-height: 460px;
}

.shot-img {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  object-position: center center;
  background: #e8f2ff;
  vertical-align: middle;
}

.phone-screen.has-shot .shot-img {
  display: block;
}

.phone-screen.has-shot .guide-placeholder {
  display: none;
}

.guide-placeholder {
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 14px;
  background:
    linear-gradient(180deg, rgba(7, 95, 228, 0.08), rgba(7, 95, 228, 0.02)),
    repeating-linear-gradient(
      135deg,
      #edf3fb,
      #edf3fb 14px,
      #e6eef8 14px,
      #e6eef8 28px
    );
}

.placeholder-label {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.placeholder-file {
  display: block;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  direction: ltr;
  text-align: center;
  overflow-wrap: anywhere;
}

.foot {
  padding: 8px 16px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 720px) {
  .shot-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wide screens: title centered above, explanation then screenshot.
   Mobile/narrow keeps the stacked title → text → image order. */
@media (min-width: 900px) {
  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot, > .shot-row) {
    display: grid;
    grid-template-columns: minmax(15.5rem, 1fr) auto;
    column-gap: 32px;
    align-items: center;
  }

  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot, > .shot-row) > h2,
  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot, > .shot-row) > h3 {
    grid-column: 1 / -1;
  }

  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot, > .shot-row) > :not(h2):not(h3):not(.shot):not(.shot-row) {
    grid-column: 1;
  }

  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot, > .shot-row) > .shot,
  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot, > .shot-row) > .shot-row {
    grid-column: 2;
    grid-row: 2 / span 50;
    margin-top: 0;
  }

  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot-row) > .shot-row {
    grid-template-columns: 1fr;
  }

  .step:not(.is-full-screen) .step-body:has(> p):has(> .shot, > .shot-row) .phone {
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    filter: none;
  }

  .chapter-ring,
  .chapter-ring-delay {
    animation: none;
    opacity: 0.28;
  }
}

.guide-top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  max-width: 760px;
  margin: 0 auto 10px;
  padding: 0 4px;
}

.guide-top-nav a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.guide-top-nav a:hover,
.guide-top-nav a:focus-visible {
  text-decoration: underline;
}

.guides-hub .page {
  max-width: 920px;
}

.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 32px;
}

.guide-chip {
  appearance: none;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(7, 95, 228, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 55, 116, 0.06);
}

.guide-chip:hover,
.guide-chip:focus-visible {
  border-color: rgba(7, 95, 228, 0.4);
  background: #fff;
}

.guide-chip.is-active,
.guide-chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.guide-topic {
  margin: 0 0 36px;
}

.guide-topic h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.guide-topic-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.guide-card {
  display: block;
  padding: 20px 18px 16px;
  border: 1px solid rgba(15, 42, 74, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(11, 55, 116, 0.07);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(7, 95, 228, 0.28);
  box-shadow: 0 18px 40px rgba(11, 55, 116, 0.12);
  transform: translateY(-2px);
}

.guide-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.guide-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.guide-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-card-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.guide-related {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.guide-related h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.guide-related-all {
  margin: 18px 0 0;
  text-align: center;
}

.guide-related-all a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.guide-related-all a:hover,
.guide-related-all a:focus-visible {
  text-decoration: underline;
}

.guide-noscript-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-noscript-list li {
  margin: 0 0 12px;
}

.guide-noscript-list a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 720px) {
  .guides-hub .guide-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .guide-chip {
    transition: none;
  }

  .guide-card:hover,
  .guide-card:focus-visible {
    transform: none;
  }
}
