/* ============================================================
   CASE STUDY — Shared structural styles for all case study pages
   Brand accent colours and page-specific components live in
   css/giftlo.css and css/nextbestie.css respectively.
============================================================ */

/* ---- Hero -------------------------------------------------- */
.cs-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 32px 80px;
}

.cs-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.5;
}

.cs-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Back link */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 36px;
  transition: color 0.2s, gap 0.2s;
}
.cs-back:hover { color: var(--text); gap: 12px; }

/* Badges row */
.cs-hero__badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cs-hero__desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 32px;
}

/* Meta */
.cs-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.cs-meta__item { display: flex; flex-direction: column; gap: 4px; }
.cs-meta__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.cs-meta__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.cs-meta__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.cs-hero__stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero visual */
.cs-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cs-hero__mockup-img {
  width: 120%;
  max-width: 680px;
  height: auto;
  display: block;
  margin-left: -10%;
}

/* ---- Mockup Banner ----------------------------------------- */
.cs-mockup-banner {
  padding: 0 32px 80px;
}
.cs-mockup-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 40px rgba(255,107,107,0.08);
}
.cs-mockup-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Sections --------------------------------------------- */
.cs-section { padding: 100px 0; }

.cs-section__header {
  text-align: center;
  margin-bottom: 64px;
}
.cs-section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 16px 0 20px;
}
.cs-section__desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---- Body text -------------------------------------------- */
.cs-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

/* ---- Problem layout --------------------------------------- */
.cs-problem__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

/* ---- Pain cards ------------------------------------------- */
.cs-pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs-pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.cs-pain-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.cs-pain-card__icon {
  width: 48px; height: 48px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cs-pain-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.cs-pain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Loop ------------------------------------------------- */
.cs-loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}
.cs-loop__step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.cs-loop__step:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.cs-loop__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.cs-loop__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Features grid ---------------------------------------- */
.cs-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cs-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.cs-feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.3s;
}
.cs-feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.cs-feature-card:hover::after { opacity: 1; }

.cs-feature-card--wide { grid-column: span 2; }
.cs-feature-card--wide .cs-feature-card__desc { max-width: 100%; }

.cs-feature-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.cs-feature-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.cs-feature-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 24px;
}

/* ---- Audience --------------------------------------------- */
.cs-audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cs-audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.cs-audience-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.cs-audience-card__emoji {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}
.cs-audience-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.cs-audience-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Download CTA ----------------------------------------- */
.cs-download__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cs-download__inner::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%;
  width: 80%;
  height: 1px;
}
.cs-download__desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.cs-download__stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Back button (above footer on project pages) ---------- */
.pg-back {
  padding: 56px 0 56px;
  display: flex;
  justify-content: center;
}
.pg-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.pg-back__btn:hover {
  color: var(--text);
  border-color: var(--border-glow);
  gap: 12px;
}

/* ---- User Persona ----------------------------------------- */
.persona {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Left panel */
.persona__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 36px;
  border-right: 1px solid var(--border);
  background: var(--bg-card-2);
  gap: 0;
}

.persona__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--persona-accent, var(--purple-light));
  box-shadow: 0 0 0 6px rgba(139,92,246,0.1);
  flex-shrink: 0;
  margin-bottom: 20px;
}
.persona__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.persona__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 6px;
}

.persona__role {
  font-size: 13px;
  color: var(--persona-accent, var(--purple-light));
  font-weight: 600;
  margin-bottom: 24px;
}

.persona__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.persona__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.persona__details li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.persona__details li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--persona-accent, var(--purple-light));
  opacity: 0.8;
}
.persona__details li strong { color: var(--text); font-weight: 600; }

.persona__badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--persona-accent, var(--purple-light));
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Right panel */
.persona__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.persona__card {
  background: var(--bg-card);
  padding: 28px 30px;
  --card-accent: var(--purple-light);
}

/* Card accent colours */
.persona__card--interests  { --card-accent: #60A5FA; }
.persona__card--motivations { --card-accent: #A78BFA; }
.persona__card--pain        { --card-accent: #FB923C; }
.persona__card--needs       { --card-accent: #34D399; }

.persona__card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.persona__card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--card-accent) 15%, transparent);
  color: var(--card-accent);
  flex-shrink: 0;
}

.persona__card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--card-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.persona__card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.persona__card ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.persona__card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: 0.7;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .cs-hero { padding: 100px 20px 60px; }
  .cs-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .cs-hero__visual { display: none; }
  .cs-problem__layout { grid-template-columns: 1fr; gap: 36px; }
  .cs-pain-cards { grid-template-columns: 1fr; gap: 16px; }
  .cs-loop { grid-template-columns: 1fr; }
  .cs-features__grid { grid-template-columns: 1fr; }
  .cs-feature-card--wide { grid-column: span 1; }
  .cs-audience__grid { grid-template-columns: repeat(2, 1fr); }
  .cs-download__inner { padding: 56px 40px; }
  .persona { grid-template-columns: 220px 1fr; }
  .persona__left { padding: 36px 24px; }
  .persona__avatar { width: 110px; height: 110px; }
}

@media (max-width: 768px) {
  .cs-mockup-banner { padding: 0 20px 60px; }
  .cs-section { padding: 72px 0; }
  .cs-meta { gap: 14px; }
  .cs-loop { gap: 0; }
  .cs-audience__grid { grid-template-columns: 1fr; }
  .cs-download__inner { padding: 48px 28px; border-radius: 28px; }
  .persona { grid-template-columns: 1fr; }
  .persona__left { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; text-align: left; align-items: flex-start; gap: 24px; padding: 28px; flex-wrap: wrap; }
  .persona__avatar { width: 90px; height: 90px; margin-bottom: 0; }
  .persona__divider { display: none; }
  .persona__card { padding: 22px 20px; }
}

@media (max-width: 480px) {
  .persona__left { flex-direction: column; align-items: center; text-align: center; }
  .persona__right { grid-template-columns: 1fr; }
}

/* ============================================================
   LIGHTWEIGHT PROJECT PAGES — shared showcase & info styles
   Used by some.html and saife-store.html
============================================================ */

/* ---- 3-image showcase grid --------------------------------- */
.pg-showcase {
  padding: 0 32px 80px;
}
.pg-showcase__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pg-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.pg-showcase__item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  height: 420px;
}
.pg-showcase__item:nth-child(3) {
  grid-column: 1 / -1;
  height: 620px;
}
.pg-showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.pg-showcase__item:hover img { transform: scale(1.04); }

/* ---- Features + Tech info section ------------------------- */
.pg-info {
  padding: 96px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pg-info__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
  align-items: start;
}
.pg-info__heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pg-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.pg-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}

/* ---- Feature list — stacked card rows --------------------- */
.pg-tag-list--features {
  flex-direction: column;
  gap: 8px;
}
.pg-tag-list--features .pg-tag {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  gap: 14px;
}
.pg-tag-list--features .pg-tag svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 8px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.06);
}

/* ---- Other Projects --------------------------------------- */
.other-projects { padding: 80px 0 96px; }
.other-projects__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.other-projects__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
}
.other-projects__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.other-projects__back:hover { color: var(--text); border-color: var(--purple); }
.other-projects__list { display: flex; flex-direction: column; gap: 16px; }
.other-projects__item {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.25s;
  overflow: hidden;
}
.other-projects__item:hover { border-color: rgba(139,92,246,0.4); }
.other-projects__thumb {
  width: 260px;
  height: 168px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.other-projects__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.other-projects__item:hover .other-projects__img { transform: scale(1.06); }
.other-projects__info { flex: 1; min-width: 0; }
.other-projects__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.other-projects__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .pg-showcase__item { height: 260px; }
  .pg-showcase__item:nth-child(3) { height: 300px; }
  .pg-info__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .other-projects__item { flex-direction: column; align-items: flex-start; gap: 20px; }
  .other-projects__thumb { width: 100%; height: 200px; }
}
@media (max-width: 640px) {
  .pg-showcase { padding: 0 20px 60px; }
  .pg-showcase__grid { grid-template-columns: 1fr; }
  .pg-showcase__item { height: 220px; }
  .pg-showcase__item:nth-child(3) { grid-column: span 1; height: 220px; }
}
