/* StyleMate — complete corrected stylesheet.
   All custom styles, Journey animation and Our Team cards are here.
   Keep Tailwind CDN and Font Awesome imports in index.html. */

:root {
  --sm-purple: #7c3aed;
  --sm-purple-dark: #6d28d9;
  --sm-ink: #1e1b4b;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--sm-ink);
  background-color: #fcfbfe;
}

/* Existing StyleMate brand utility styles */
.glass-card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
}

.glass-modal {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(237,233,254,.5);
}

.text-gradient {
  background: linear-gradient(135deg,#7c3aed 0%,#c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-purple-gradient {
  background: linear-gradient(135deg,#2e1065 0%,#6b21a8 50%,#581c87 100%);
}

.bg-hero-glow {
  background: radial-gradient(circle at 70% 30%,rgba(196,181,253,.35) 0%,rgba(255,255,255,0) 65%);
}

.custom-shadow {
  box-shadow: 0 20px 40px -15px rgba(124,58,237,.12);
}

/* Keep hash-linked sections visible under the sticky header. */
#about, #features, #how-it-works, #thrift, #new-collection, #team {
  scroll-margin-top: 105px;
}

/* =============================================================
   STYLE JOURNEY — continuous glowing line + numbered steps
   ============================================================= */
.sm-journey-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px,4vw,46px);
  border: 1px solid #ddd0ff;
  border-radius: 28px;
  background: linear-gradient(112deg,#fdfbff 0%,#f6efff 43%,#e9d9ff 100%);
  box-shadow: 0 20px 50px rgba(99,44,181,.10);
}

.sm-journey-panel::before {
  content: '';
  position: absolute;
  inset: auto -15% -100% 25%;
  height: 230%;
  background: radial-gradient(ellipse,rgba(192,132,252,.22),transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.sm-journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 38px;
}

.sm-journey-top h3 {
  color: #1e1b4b;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.sm-journey-top p {
  color: #6d28d9;
  font-size: 12px;
  font-weight: 500;
}

.sm-journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  padding-bottom: 4px;
}

.sm-journey-rail {
  position: absolute;
  z-index: 0;
  left: 12.5%;
  right: 12.5%;
  top: 27px;
  height: 2px;
  background: linear-gradient(90deg,#d3b6fa,#b891f2,#d3b6fa);
  pointer-events: none;
}

/* Transparent overlay that clips two continuously sweeping glows. */
.sm-journey-beam {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 56px;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to right,transparent,black 6%,black 94%,transparent);
  mask-image: linear-gradient(to right,transparent,black 6%,black 94%,transparent);
}

.sm-journey-beam::before,
.sm-journey-beam::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 44px 5px at 50% 50%,#fff 0%,rgba(216,180,254,.95) 32%,transparent 100%),
    radial-gradient(ellipse 95px 20px at 50% 50%,rgba(168,85,247,.78) 0%,rgba(147,51,234,.30) 44%,transparent 100%);
  transform: translate3d(-100%,0,0);
  backface-visibility: hidden;
  will-change: transform;
  animation: sm-journey-sweep-x 8s linear infinite;
}

.sm-journey-beam::after { animation-delay: -4s; }

@keyframes sm-journey-sweep-x {
  from { transform: translate3d(-100%,0,0); }
  to { transform: translate3d(100%,0,0); }
}

.sm-journey-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.sm-journey-number {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #dcc6ff;
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  color: #6d28d9;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(109,40,217,.07);
  animation: sm-journey-node-pulse 4s linear infinite;
}

/* Sync each step with the two offset light sweeps (4s per visible pass).
   Step 2 glows at 3.333s, Step 3 at 0.667s; delays must follow
   CSS negative-delay phase semantics, not the reverse. */
.sm-journey-step:nth-child(2) .sm-journey-number { animation-delay: 0s; }
.sm-journey-step:nth-child(3) .sm-journey-number { animation-delay: -2.667s; }
.sm-journey-step:nth-child(4) .sm-journey-number { animation-delay: -1.333s; }
.sm-journey-step:nth-child(5) .sm-journey-number { animation-delay: 0s; }

@keyframes sm-journey-node-pulse {
  0%,42%,58%,100% {
    background: rgba(255,255,255,.94);
    color: #6d28d9;
    border-color: #dcc6ff;
    transform: scale(1);
    box-shadow: 0 3px 12px rgba(109,40,217,.07);
  }
  49%,51% {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(168,85,247,.14),0 0 22px rgba(124,58,237,.42);
  }
}

.sm-journey-copy {
  max-width: 220px;
  margin-top: 19px;
}

.sm-journey-copy h4 {
  margin: 0;
  color: #221c4e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.sm-journey-copy p {
  margin: 7px 0 0;
  color: #6b6380;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .sm-journey-top { display: block; margin-bottom: 24px; }
  .sm-journey-top p { margin-top: 5px; }
  .sm-journey-track {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4,minmax(114px,auto));
    gap: 12px;
    padding-bottom: 0;
  }
  .sm-journey-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
  }
  .sm-journey-number { flex: 0 0 54px; }
  .sm-journey-copy { max-width: none; margin-top: 1px; }
  .sm-journey-rail {
    left: 26px;
    right: auto;
    top: 27px;
    bottom: 87px;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom,#d3b6fa,#b891f2,#d3b6fa);
  }
  .sm-journey-beam {
    top: 0;
    left: 50%;
    width: 56px;
    height: 100%;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to bottom,transparent,black 6%,black 94%,transparent);
    mask-image: linear-gradient(to bottom,transparent,black 6%,black 94%,transparent);
  }
  .sm-journey-beam::before,
  .sm-journey-beam::after {
    background:
      radial-gradient(ellipse 5px 44px at 50% 50%,#fff 0%,rgba(216,180,254,.95) 32%,transparent 100%),
      radial-gradient(ellipse 20px 95px at 50% 50%,rgba(168,85,247,.78) 0%,rgba(147,51,234,.30) 44%,transparent 100%);
    animation-name: sm-journey-sweep-y;
  }
}

@keyframes sm-journey-sweep-y {
  from { transform: translate3d(0,-100%,0); }
  to { transform: translate3d(0,100%,0); }
}

/* =============================================================
   STYLEMATE — OUR TEAM (five editable member cards)
   ============================================================= */
.sm-team-section { scroll-margin-top: 105px; }

.sm-team-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 42px;
}

.sm-team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 14px;
}

.sm-team-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: #8b5cf6;
}

.sm-team-heading h2 {
  font-size: clamp(29px,3.5vw,43px);
  font-weight: 800;
  line-height: 1.19;
  letter-spacing: -.035em;
  color: #1e1b4b;
  margin-bottom: 13px;
}

.sm-team-heading p {
  font-size: 14px;
  line-height: 1.75;
  color: #6b7280;
}

.sm-team-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 16px;
}

.sm-team-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #e9e2f6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(66,24,122,.035);
  transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.sm-team-card:hover {
  transform: translateY(-5px);
  border-color: #d8b4fe;
  box-shadow: 0 18px 35px rgba(98,53,171,.11);
}

.sm-team-photo {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg,#f3f1f8,#e8e4f1);
}

/* Reliable photo fallback: add images/team/member-01.jpg through member-05.jpg. */
.sm-team-photo img {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.sm-team-silhouette { position: absolute; inset: 0; }

.sm-team-silhouette::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 66px;
  height: 66px;
  left: 50%;
  top: 25%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #aba4c2;
}

.sm-team-silhouette::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 115px;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  border-radius: 64px 64px 14px 14px;
  background: linear-gradient(135deg,#ad8ee8,#7049b4);
}

.sm-team-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 5px 6px;
}

.sm-team-info h3 {
  color: #1e1b4b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sm-team-role {
  margin-top: 4px;
  color: #7c3aed;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
}

.sm-team-uow {
  margin-top: 11px;
  margin-bottom: 19px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.5;
}

.sm-team-uow span { color: #4c1d95; font-weight: 800; }

.sm-team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid #ede9fe;
  border-radius: 10px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease,background .2s ease,border-color .2s ease;
}

.sm-team-link:hover,
.sm-team-link:focus-visible {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

.sm-team-external { font-size: 10px; }

@media (max-width: 1100px) {
  .sm-team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .sm-team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .sm-team-photo { height: 175px; }
}

@media (max-width: 430px) {
  .sm-team-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; gap: 17px; }
  .sm-team-photo { height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-journey-beam { display: none; }
  .sm-journey-number { animation: none !important; }
  .sm-journey-step:nth-child(2) .sm-journey-number {
    background: #7c3aed;
    color: #fff;
  }
  .sm-team-card { transition: none; }
  .sm-team-card:hover { transform: none; }
}

/* =============================================================
   STYLEMATE — FEEDBACK MODAL, MATCHING SIGN-IN / SIGNUP
   ============================================================= */
#feedback { scroll-margin-top: 105px; }
.sm-feedback-dialog { max-height: min(92vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
.sm-feedback-input { width: 100%; color: #1e1b4b; transition: border-color .2s ease, box-shadow .2s ease; }
.sm-feedback-input:focus { border-color: #8b5cf6; outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.sm-feedback-input::placeholder { color: #9ca3af; }
.sm-feedback-rating { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-feedback-rating label { flex: 1 1 auto; cursor: pointer; }
.sm-feedback-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-feedback-rating span { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e9d5ff; border-radius: 11px; padding: 10px 9px; color: #6d28d9; background: #faf5ff; font-size: 12px; font-weight: 600; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.sm-feedback-rating input:checked + span { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.sm-feedback-rating input:focus-visible + span { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.sm-feedback-rating span:hover { border-color: #a78bfa; }
.sm-feedback-status { border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.sm-feedback-status.is-error { display: block; color: #9f1239; background: #fff1f2; border: 1px solid #fecdd3; }
.sm-feedback-status.is-info { display: block; color: #5b21b6; background: #f5f3ff; border: 1px solid #ddd6fe; }
.sm-feedback-status.is-success { display: block; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
#feedbackSubmitBtn:disabled { opacity: .65; cursor: wait; }
@media (max-width: 480px) {
  .sm-feedback-dialog { padding: 22px 17px; }
  .sm-feedback-rating { gap: 6px; }
  .sm-feedback-rating span { font-size: 11px; padding: 9px 7px; }
}

.sm-modal-open { overflow: hidden; }


/* =============================================================
   STYLEMATE MARKETING WEBSITE — APP STORE CHOOSER
   Styled to match the existing Login / Signup glass modal.
   ============================================================= */
.sm-app-dialog {
  max-height: min(92vh, 850px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sm-app-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 15px 17px;
  text-align: left;
  color: #1e1b4b;
  background: linear-gradient(110deg, #fff 0%, #faf7ff 100%);
  border: 1px solid #e9ddff;
  border-radius: 17px;
  box-shadow: 0 4px 16px rgba(76, 29, 149, .045);
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sm-app-option:hover {
  transform: translateY(-2px);
  border-color: #a78bfa;
  background: #f8f2ff;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .13);
}
.sm-app-option:focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
}
.sm-app-option-icon {
  width: 50px;
  height: 50px;
  display: flex;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 25px;
}
.sm-app-android { background: #ede9fe; color: #6d28d9; }
.sm-app-ios { background: #1e1b4b; color: #fff; }
.sm-app-option-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.sm-app-option-copy strong { font-size: 16px; font-weight: 800; line-height: 1.25; }
.sm-app-option-copy small { font-size: 12px; color: #6b7280; font-weight: 500; }
.sm-app-option-arrow { color: #8b5cf6; font-size: 14px; }
.sm-app-status {
  padding: 11px 13px;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
  border-radius: 11px;
  background: #f5f3ff;
  font-size: 12px;
  line-height: 1.6;
}
.sm-app-status:not(.hidden) { display: block; }
@media (max-width: 430px) {
  .sm-app-option { min-height: 76px; padding: 12px; gap: 12px; }
  .sm-app-option-icon { width: 46px; height: 46px; flex-basis: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-app-option { transition: none; }
  .sm-app-option:hover { transform: none; }
}
