/* Mobile-led homepage feature previews.
   Values and hierarchy mirror the corresponding React Native components in
   ../ozpath; the outer layouts only adapt those screens for the website. */

@font-face {
  font-family: 'Ionicons';
  src: url('../images/fonts/Ionicons.ttf') format('truetype');
  font-display: block;
}

.ion-icon {
  display: inline-block;
  flex: 0 0 auto;
  font-family: 'Ionicons';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  speak: never;
}

.mobile-feature {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 7.5rem) 1rem;
  background: #ffffff;
}

.mobile-feature--ruby {
  border-block: 1px solid #eef2f7;
  background: #f8fafc;
}

.mobile-feature-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.mobile-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.mobile-feature-layout--reverse {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1fr);
}

.mobile-feature-copy {
  max-width: 540px;
}

.mobile-feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  color: #2e89e6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-feature-kicker::before {
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: #2e89e6;
  content: '';
}

.mobile-feature-copy h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.mobile-feature-copy > p {
  margin: 1.25rem 0 0;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
}

.mobile-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.6rem;
  color: #2e89e6;
  font-size: 0.88rem;
  font-weight: 800;
}

.mobile-feature-link .ion-icon {
  font-size: 1rem;
  transition: transform 160ms ease;
}

.mobile-feature-link:hover .ion-icon,
.mobile-feature-link:focus-visible .ion-icon {
  transform: translateX(3px);
}

.mobile-feature-copy .mobile-feature-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
}

.mobile-feature-disclaimer .ion-icon {
  margin-top: 0.1rem;
  font-size: 0.95rem;
}

.app-surface,
.app-screen {
  font-family: 'Inter', sans-serif;
}

.app-surface *,
.app-screen * {
  box-sizing: border-box;
}

.mobile-preview-column {
  width: min(100%, 480px);
  justify-self: end;
}

.mobile-preview-note {
  margin: 0.9rem 0 0;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

/* Occupation snapshot — HomeOccupationSnapshotCard.tsx */
.occupation-snapshot {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.occupation-snapshot-header {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 22px 20px;
  background: #2e89e6;
}

.city-skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  height: auto;
  pointer-events: none;
}

.occupation-identity {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.occupation-identity > span,
.visa-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.occupation-identity > strong {
  display: block;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 30px;
}

.shortage-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 600;
}

.shortage-pill .ion-icon {
  color: #92400e !important;
  font-size: 12px;
}

.occupation-identity .visa-label {
  margin-top: 18px;
}

.visa-value {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.visa-value .ion-icon {
  color: #ffffff !important;
  font-size: 15px;
}

.occupation-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: #2e89e6;
}

.occupation-icon .ion-icon {
  color: #2e89e6 !important;
  font-size: 18px;
}

.occupation-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.occupation-stats > div {
  padding: 16px 18px;
}

.occupation-stats > div + div {
  border-left: 1px solid #f1f5f9;
}

.occupation-stats span {
  display: block;
  margin-bottom: 6px;
  color: #2e89e6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.occupation-stats strong {
  display: block;
  color: #0f172a;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 30px;
}

.occupation-stats small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.occupation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #ffffff;
}

.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2e89e6;
  font-size: 12.5px;
  font-weight: 600;
}

.points-pill .ion-icon {
  color: #2e89e6 !important;
  font-size: 12px;
}

.snapshot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2e89e6;
  font-size: 13px;
  font-weight: 700;
}

.snapshot-link .ion-icon {
  color: #2e89e6 !important;
  font-size: 13px;
}

/* Ruby — chatbot.tsx welcome state */
.app-screen {
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #f8fafc;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.ruby-app-preview {
  justify-self: start;
}

.ruby-app-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ruby-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ruby-identity > span:last-child {
  display: grid;
  gap: 1px;
}

.ruby-identity strong {
  color: #2e89e6;
  font-size: 18px;
  font-weight: 700;
}

.ruby-identity small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.ruby-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
}

.ruby-avatar--small {
  width: 40px;
  height: 40px;
}

.ruby-avatar--large {
  width: 72px;
  height: 72px;
}

.ruby-avatar-crop {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #eef2ff;
}

.ruby-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The source PNG has black pixels just outside its circular artwork.
     Crop slightly further in so that edge cannot appear as an avatar ring. */
  transform: scale(1.14);
}

.ruby-avatar i {
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #22c55e;
}

.ruby-avatar--large i {
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border-width: 2.5px;
}

.ruby-info-icon {
  padding: 9px;
  color: #64748b;
  font-size: 22px;
}

.ruby-welcome {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
}

.ruby-welcome[hidden],
.ruby-demo-conversation[hidden] {
  display: none;
}

.ruby-welcome h3 {
  max-width: 330px;
  margin: 18px 0 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 600;
  line-height: 27px;
  text-align: center;
}

.ruby-starters {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 24px;
}

.ruby-starters button {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  gap: 12px;
  width: 100%;
  align-items: center;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  cursor: pointer;
  background: #ffffff !important;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 160ms ease, transform 160ms ease;
}

.ruby-starters button:hover,
.ruby-starters button:focus-visible,
.ruby-starters button.is-selected {
  border-color: #bfdbfe;
  background: #ffffff !important;
  color: #0f172a;
  transform: translateY(-1px);
}

.ruby-starters .ion-icon:first-child {
  color: #2e89e6;
  font-size: 15px;
}

.ruby-starters .ion-icon:last-child {
  color: #475569;
  font-size: 13px;
  text-align: center;
}

.ruby-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 20px;
  background: #ffffff;
  color: #94a3b8;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.ruby-composer > span {
  min-height: 44px;
  flex: 1;
  overflow: hidden;
  padding: 11px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #f8fafc;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ruby-composer > i {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #ffffff;
  font-style: normal;
}

.ruby-composer.has-prompt > i {
  background: #2e89e6;
}

.ruby-composer .ion-icon {
  font-size: 20px;
}

.ruby-composer > i .ion-icon,
.ruby-composer.has-prompt > i .ion-icon {
  color: #ffffff !important;
}

.ruby-demo-conversation {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
}

.ruby-user-message {
  max-width: 82%;
  align-self: flex-end;
  padding: 11px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #2e89e6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.ruby-response-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.ruby-avatar--response {
  width: 36px;
  height: 36px;
  margin-top: 2px;
}

.ruby-avatar--response i {
  width: 9px;
  height: 9px;
}

.ruby-response-content {
  min-width: 0;
  flex: 1;
}

.ruby-response-content > strong {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.ruby-response-surface {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ruby-response-surface p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.ruby-typing {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 11px;
}

.ruby-typing[hidden],
.ruby-response-surface p[hidden] {
  display: none;
}

.ruby-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2e89e6;
  animation: ruby-typing-dot 900ms infinite ease-in-out;
}

.ruby-typing i:nth-child(2) {
  animation-delay: 120ms;
}

.ruby-typing i:nth-child(3) {
  animation-delay: 240ms;
}

.ruby-typing span {
  margin-left: 4px;
}

.ruby-reset {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin: 22px 0 0 48px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent !important;
  color: #2e89e6;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

.ruby-reset:hover,
.ruby-reset:focus-visible,
.ruby-reset:active {
  background: transparent !important;
  color: #2e89e6;
}

.ruby-reset .ion-icon {
  font-size: 15px;
}

@keyframes ruby-typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Course Directory — course-directory.tsx + CourseListItem.tsx */
.course-app-preview {
  justify-self: end;
  border-radius: 24px;
}

.course-app-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 24px;
  border-radius: 0 0 24px 24px;
  background: #2e89e6;
}

.course-app-title-row,
.course-app-search-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.course-app-title-row > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 5px;
}

.course-app-title-row strong {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 34px;
}

.course-app-title-row small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.course-save {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: -5px -10px 0 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  place-items: center;
  background: transparent;
  color: #ffffff;
}

.course-save .ion-icon {
  color: #ffffff;
  font-size: 22px;
}

.course-save[aria-pressed='true'] .ion-icon {
  color: #ffffff;
}

.course-app-search-row {
  align-items: center;
  margin-top: 16px;
  gap: 10px;
}

.course-search {
  display: flex;
  height: 46px;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.course-search .ion-icon {
  color: #94a3b8;
  font-size: 18px;
}

.course-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: 14px 'Inter', sans-serif;
  box-shadow: none;
}

.course-search input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.course-search input::placeholder {
  color: #94a3b8;
}

.course-filter-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  place-items: center;
  background: #ffffff;
  color: #2e89e6;
}

.course-filter-button > .ion-icon {
  font-size: 18px;
}

.course-filter-button i {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  place-items: center;
  border-radius: 8px;
  background: #2e89e6;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.course-filter-button i[hidden] {
  display: none;
}

.course-active-filter {
  padding: 12px 16px 0;
}

.course-active-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  background: #eff6ff;
  color: #2e89e6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.course-active-filter .ion-icon {
  font-size: 13px;
}

.course-results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 8px;
  color: #64748b;
  font-size: 13px;
}

.course-results-row > span strong {
  font-weight: 400;
}

.course-results-row button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: #2e89e6;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.course-results-row .ion-icon {
  font-size: 14px;
}

.course-list {
  display: grid;
  gap: 10px;
  padding: 4px 16px 12px;
}

.course-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  background: #ffffff;
  color: inherit;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-color 160ms ease, transform 160ms ease;
}

.course-item[hidden] {
  display: none;
}

.course-item:hover,
.course-item:focus-visible,
.course-item.is-selected {
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.provider-logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 13px;
}

.provider-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.course-content {
  display: grid;
  min-width: 0;
  flex: 1;
}

.course-name {
  display: -webkit-box;
  overflow: hidden;
  padding-right: 26px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-provider {
  overflow: hidden;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-location {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 17px;
}

.course-location .ion-icon {
  font-size: 13px;
}

.course-price {
  margin-top: 7px;
  color: #2e89e6;
  font-size: 16px;
  font-weight: 700;
}

.course-chevron {
  flex: 0 0 auto;
  color: #cbd5e1;
  font-size: 18px;
}

.course-bookmark {
  position: absolute;
  top: 14px;
  right: 43px;
  color: #94a3b8;
  font-size: 19px;
}

.course-item.is-selected .course-bookmark {
  color: #2e89e6;
}

.course-empty {
  padding: 24px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.course-compliance {
  margin: 0 16px 18px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 15px;
}

/* Existing homepage elements outside the three mobile previews. */
.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.workspace-tab {
  padding: 0.65rem 0.45rem;
  border: 1px solid #e5eaf0;
  border-radius: 11px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.workspace-tab strong {
  display: block;
  margin-bottom: 0.1rem;
  color: #176fc4;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.security-note .material-symbols-outlined {
  color: #2e89e6;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .mobile-feature-layout,
  .mobile-feature-layout--reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mobile-feature-layout--reverse .mobile-feature-copy {
    grid-row: 1;
  }

  .mobile-feature-layout--reverse .ruby-app-preview {
    grid-row: 2;
  }

  .mobile-feature-copy {
    max-width: 660px;
  }

  .mobile-preview-column,
  .app-screen {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .mobile-feature {
    padding-inline: 0.75rem;
  }

  .mobile-feature-copy h2 {
    font-size: 2.3rem;
  }

  .occupation-snapshot-header {
    min-height: 214px;
    padding-inline: 17px;
  }

  .occupation-identity > strong {
    font-size: 23px;
    line-height: 28px;
  }

  .occupation-icon {
    width: 36px;
    height: 36px;
  }

  .occupation-stats > div {
    padding-inline: 15px;
  }

  .occupation-footer {
    padding-inline: 15px;
  }

  .ruby-welcome {
    min-height: 400px;
    padding: 28px 18px;
  }

  .ruby-starters button {
    gap: 9px;
    font-size: 12.5px;
  }

  .course-app-hero {
    padding-inline: 16px;
  }

  .course-app-title-row strong {
    font-size: 24px;
    line-height: 30px;
  }

  .provider-logo {
    width: 42px;
    height: 42px;
  }

  .course-item {
    gap: 10px;
    padding: 12px;
  }

  .course-name {
    font-size: 13.5px;
    line-height: 18px;
  }

  .course-provider {
    font-size: 11.5px;
  }

  .course-bookmark {
    top: 12px;
    right: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-feature-link .ion-icon,
  .ruby-starters button,
  .course-item {
    transition: none;
  }
}
