/* ============================================================
   GIFTLO — Brand-specific styles
   Shared case study structure lives in css/casestudy.css
   Accent: #FF6B6B (brand coral)
============================================================ */

/* ---- Colour tokens ----------------------------------------- */
:root {
  --gf-coral:      #FF6B6B;
  --gf-coral-dark: #E85555;
  --gf-glow:       rgba(255,107,107,0.2);
}

/* ---- Hero blobs -------------------------------------------- */
.cs-hero__blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6D28D9, transparent);
  top: -200px; left: -150px;
}
.cs-hero__blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4F46E5, transparent);
  bottom: -100px; right: -100px;
}

/* ---- Live badge ------------------------------------------- */
.cs-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 5px 14px;
  border-radius: 100px;
}
.cs-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ---- Brand title & tagline --------------------------------- */
.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.cs-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-style: italic;
  font-weight: 400;
  color: var(--gf-coral);
  margin-bottom: 20px;
}

/* ---- Brand accent overrides ------------------------------- */
.cs-section .persona { --persona-accent: var(--gf-coral); }
.cs-section .persona__avatar { border-color: var(--gf-coral); box-shadow: 0 0 0 6px rgba(255,107,107,0.12); }
.cs-section .persona__badge { color: var(--gf-coral); background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.25); }

.cs-meta__label          { color: var(--gf-coral); }
.cs-section__title em    { color: var(--gf-coral); }

/* ---- Quote ------------------------------------------------ */
.cs-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  padding-left: 24px;
  border-left: 3px solid var(--gf-coral);
  margin: 0;
  align-self: center;
}

/* ---- Loop number & arrow ---------------------------------- */
.cs-loop__num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: var(--gf-coral);
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 12px;
}
.cs-loop__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--gf-coral);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ---- Feature card brand styles ---------------------------- */
.cs-feature-card::after {
  background: linear-gradient(to right, transparent, rgba(255,107,107,0.5), transparent);
}
.cs-feature-card__num {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--gf-coral);
  opacity: 0.6;
  line-height: 1;
}
.cs-feature-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---- Idea section ----------------------------------------- */
.cs-idea {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---- Demo section ----------------------------------------- */
.cs-demo {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-demo__frame {
  display: flex;
  justify-content: center;
  padding: 20px 0 0;
}

/* ---- Download CTA brand overrides ------------------------- */
.cs-download { padding: 80px 0 0; }
.cs-download__blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.18), transparent);
  top: -250px; left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  pointer-events: none;
}
.cs-download__inner::before {
  background: linear-gradient(to right, transparent, var(--gf-coral), transparent);
}
.cs-download__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin: 16px 0 16px;
}
.cs-download__title em {
  font-style: italic;
  color: var(--gf-coral);
}

/* ---- User Research ----------------------------------------- */
.gf-research__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.gf-subsection-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gf-coral);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.gf-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.gf-insight-item:last-child { border-bottom: none; }
.gf-insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gf-coral);
  margin-top: 7px;
  flex-shrink: 0;
}
.gf-insight-item p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Survey Card ------------------------------------------ */
.gf-survey-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
}
.gf-survey-card__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}
.gf-survey-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.gf-survey-card__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}
.gf-survey-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gf-survey-stat__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.gf-survey-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.gf-survey-stat__pct {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--gf-coral);
  flex-shrink: 0;
}
.gf-survey-stat__track {
  height: 5px;
  background: rgba(255,107,107,0.1);
  border-radius: 100px;
  overflow: hidden;
}
.gf-survey-stat__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gf-coral), rgba(255,107,107,0.4));
  border-radius: 100px;
}
.gf-survey-card__footnote {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  opacity: 0.6;
}

/* ---- Placeholders ----------------------------------------- */
.gf-placeholder {
  border: 1.5px dashed rgba(255,107,107,0.25);
  border-radius: var(--radius-xl);
  background: rgba(255,107,107,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.gf-placeholder--research    { min-height: 300px; }
.gf-placeholder--journey     { min-height: 160px; margin-top: 40px; }
.gf-journey-map {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.gf-journey-map__img { display: block; width: 100%; height: auto; }
.gf-placeholder--sitemap     { min-height: 160px; margin-top: 40px; }
.gf-placeholder--wireframes  { min-height: 320px; }
.gf-wireframes {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.gf-wireframes__img { display: block; width: 100%; height: auto; }
.gf-placeholder--interaction { min-height: 180px; margin-top: 40px; }
.gf-placeholder--iterations  { min-height: 200px; margin-top: 40px; }
.gf-placeholder--feedback    { min-height: 160px; margin-top: 40px; }
.gf-placeholder--persona     { min-height: 160px; }
.gf-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  opacity: 0.55;
}

/* ---- Persona ---------------------------------------------- */
.gf-persona-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.gf-persona-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,107,107,0.12);
  border: 2px solid rgba(255,107,107,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gf-coral);
  flex-shrink: 0;
  overflow: hidden;
}
.gf-persona-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gf-persona-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.gf-persona-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.gf-persona-age {
  font-size: 12px;
  font-weight: 600;
  color: var(--gf-coral);
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.2);
  padding: 4px 12px;
  border-radius: 100px;
}
.gf-persona-details {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.gf-persona-detail__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gf-coral);
  margin-bottom: 6px;
}
.gf-persona-detail__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.gf-persona-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 22px;
}

/* ---- User Journey ----------------------------------------- */
.gf-journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  overflow-x: auto;
  padding: 10px 2px 8px;
}
.gf-journey__step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 16px;
  text-align: center;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.gf-journey__step:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.gf-journey__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--gf-coral);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 8px;
}
.gf-journey__step h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.gf-journey__step p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.gf-journey__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--gf-coral);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ---- App Structure / Sitemap ------------------------------ */
.gf-sitemap { max-width: 860px; margin: 0 auto; text-align: center; }
.gf-sitemap__root { display: flex; justify-content: center; margin-bottom: 32px; }
.gf-sitemap__node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.3s;
}
.gf-sitemap__node:hover { border-color: var(--border-glow); }
.gf-sitemap__node--root {
  background: rgba(255,107,107,0.08);
  border-color: rgba(255,107,107,0.3);
  color: var(--gf-coral);
  font-weight: 700;
  font-size: 15px;
}
.gf-sitemap__branches {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Design Decisions ------------------------------------- */
.gf-decisions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.gf-decision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.gf-decision-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.gf-decision-card--wide { grid-column: span 2; }
.gf-decision-card__choice {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.gf-decision-card__arrow {
  font-size: 20px;
  color: var(--gf-coral);
  opacity: 0.6;
  font-weight: 300;
}
.gf-decision-card__reason {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Interaction Design ----------------------------------- */
.gf-interactions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gf-interaction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.gf-interaction-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.gf-interaction-card__icon {
  width: 52px; height: 52px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gf-coral);
  margin: 0 auto 20px;
}
.gf-interaction-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.gf-interaction-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Design Iterations ------------------------------------ */
.gf-iterations {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 40px;
}
.gf-iteration {
  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);
}
.gf-iteration:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.gf-iteration--final {
  border-color: rgba(255,107,107,0.25);
  background: rgba(255,107,107,0.04);
}
.gf-iteration__ver {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--gf-coral);
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 12px;
}
.gf-iteration h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.gf-iteration p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.gf-iteration__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--gf-coral);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ---- Testing & Feedback ----------------------------------- */
.gf-feedback__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gf-feedback-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.gf-feedback-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.gf-feedback-card__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--gf-coral);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}
.gf-feedback-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}
.gf-feedback-card strong { color: var(--text); font-weight: 700; }

/* ---- User Quote Cards ------------------------------------- */
.gf-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gf-quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.gf-quote-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.gf-quote-card__mark {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.9;
  color: var(--gf-coral);
  opacity: 0.35;
}
.gf-quote-card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.78;
  flex: 1;
}
.gf-quote-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.gf-quote-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--gf-coral);
  flex-shrink: 0;
}
.gf-quote-card__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.gf-quote-card__meta {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Outcome ---------------------------------------------- */
.gf-outcome__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gf-outcome-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.gf-outcome-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.gf-outcome-item__icon {
  width: 48px; height: 48px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gf-coral);
  margin-bottom: 20px;
}
.gf-outcome-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.gf-outcome-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- What I Learned --------------------------------------- */
.gf-learnings {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.gf-learning-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.gf-learning-item:last-child { border-bottom: none; }
.gf-learning-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--gf-coral);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}
.gf-learning-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.gf-learning-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .cs-loop__arrow { transform: rotate(90deg); justify-self: center; padding: 8px 0; }
  .gf-research__layout { grid-template-columns: 1fr; }
  .gf-persona-card { grid-template-columns: auto 1fr; }
  .gf-persona-details { flex-direction: column; gap: 16px; }
  .gf-persona-divider { display: none; }
  .gf-journey { grid-template-columns: 1fr; }
  .gf-journey__arrow { transform: rotate(90deg); justify-self: center; padding: 6px 0; }
  .gf-decisions__grid { grid-template-columns: 1fr; }
  .gf-decision-card { grid-template-columns: 1fr; gap: 8px; }
  .gf-decision-card__arrow { display: none; }
  .gf-decision-card--wide { grid-column: span 1; }
  .gf-interactions { grid-template-columns: repeat(2, 1fr); }
  .gf-iterations { grid-template-columns: 1fr; }
  .gf-iteration__arrow { transform: rotate(90deg); justify-self: center; padding: 8px 0; }
  .gf-feedback__grid { grid-template-columns: 1fr; }
  .gf-outcome__grid { grid-template-columns: repeat(2, 1fr); }
  .gf-quotes { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .gf-persona-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
  .gf-persona-card__avatar { margin: 0 auto; }
  .gf-persona-card__header { flex-direction: column; gap: 8px; text-align: center; }
  .gf-interactions { grid-template-columns: 1fr; }
  .gf-outcome__grid { grid-template-columns: 1fr; }
  .gf-learning-num { font-size: 36px; width: 48px; }
  .gf-learning-item { gap: 20px; }
}

@media (max-height: 860px) and (min-width: 1025px) {
  .cs-hero { padding: 90px 32px 60px; }
  .cs-hero__title { font-size: clamp(36px, 4vw, 56px); }
}
