/*
  FinPlus case study — a bespoke layout, not a reskin of case-study.css. Layo's
  layout was pixel-matched to ITS OWN Figma file (absolute positioning tuned
  to that one frame); copying that same positioning for a different project
  with a different brand just reads as "the same page in different colors".
  This one is built from FinPlus's own brand instead: normal flexbox/grid
  flow, and the 3 brand colors (navy/purple/orange, from the deck's own
  style guide) used deliberately to separate sections and carry hierarchy,
  rather than one dark background throughout.
*/
:root {
  --finplus-navy: #081240;
  --finplus-purple: #4e46c3;
  --finplus-orange: #f9b440;
  --finplus-cream: #f5f4fb;
}

.finplus {
  font-family: var(--project-font);
}

.finplus-section-title {
  font-family: var(--project-font);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  margin: 0 0 clamp(24px, 3vw, 40px);
}

/* Hero — the logo's own two colors (purple + orange) sit behind a navy page,
   same relationship as the mark itself, instead of a literal title banner. */
.finplus-hero {
  background-color: var(--finplus-navy);
  color: #fff;
  text-align: center;
  padding: clamp(120px, 14vw, 200px) clamp(20px, 4vw, 58px) clamp(64px, 7vw, 110px);
}

.finplus-hero__logo {
  display: block;
  width: clamp(140px, 14vw, 220px);
  height: auto;
  margin: 0 auto clamp(24px, 3vw, 40px);
}

.finplus-hero__tagline {
  font-family: var(--project-font);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.25;
  max-width: 780px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.finplus-hero__tagline strong {
  font-weight: 700;
  color: var(--finplus-orange);
}

.finplus-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  margin: 0 0 clamp(40px, 5vw, 56px);
  padding: 0;
}

.finplus-hero__stats dt {
  color: var(--finplus-orange);
  font-family: var(--project-font);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.finplus-hero__stats dd {
  color: #fff;
  font-family: var(--project-font);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 18px);
  margin: 0;
}

.finplus-hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.finplus-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background-color: var(--finplus-purple);
  color: #fff;
  font-family: var(--project-font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-standard), opacity 0.2s var(--ease-standard);
}

.finplus-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.finplus-btn--accent {
  background-color: var(--finplus-orange);
  color: var(--finplus-navy);
}

.finplus-btn--ghost {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Intro — light section for contrast against the navy hero above it. Big,
   confident statement of what the product does, then the real screen. */
.finplus-intro {
  background-color: var(--finplus-cream);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 58px);
  text-align: center;
}

.finplus-intro__text {
  color: var(--finplus-navy);
  font-family: var(--project-font);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}

.finplus-intro__photo {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 24px 60px rgba(8, 18, 64, 0.18);
}

.finplus-intro__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Problem — the brand's own orange, same role it plays in the source deck
   (their own pain-point slide used this exact color). Quotes read as a plain
   list with a hanging quote mark rather than a grid of boxes. */
.finplus-problem {
  background-color: var(--finplus-orange);
  color: var(--finplus-navy);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 58px);
  text-align: center;
}

.finplus-problem__intro {
  font-family: var(--project-font);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 620px;
  margin: 0 auto clamp(40px, 5vw, 56px);
}

.finplus-problem__quotes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px) clamp(32px, 4vw, 64px);
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.finplus-problem__quotes li {
  position: relative;
  padding-left: 32px;
  font-family: var(--project-font);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
}

.finplus-problem__quotes li::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: 1.6em;
  font-weight: 700;
  color: rgba(8, 18, 64, 0.4);
}

/* Team — back to navy, a plain centered statement; no card, no diagram. */
.finplus-team {
  background-color: var(--finplus-navy);
  color: #fff;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 58px);
  text-align: center;
}

.finplus-team__body {
  font-family: var(--project-font);
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.finplus-team__body strong {
  color: var(--finplus-orange);
  font-weight: 700;
}

/* UX process — the actual scope-canvas-derived artifacts (use cases,
   navigation map), full width since they're dense diagrams that need room
   to stay legible, stacked one per row rather than a cropped side-by-side
   grid like the screenshot gallery below. */
.finplus-process {
  background-color: #fff;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 58px);
  text-align: center;
}

.finplus-process figure {
  max-width: 1100px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}

.finplus-process figure:last-child {
  margin-bottom: 0;
}

.finplus-process img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(8, 18, 64, 0.1);
}

.finplus-process figcaption {
  margin-top: 16px;
  color: var(--finplus-navy);
  font-family: var(--project-font);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
}

/* Design system — swatches as circles, echoing the logo's own overlapping-
   circle mark instead of generic squares. */
.finplus-system {
  background-color: var(--finplus-cream);
  color: var(--finplus-navy);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 58px);
  text-align: center;
}

.finplus-system__colors {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin: 0 0 clamp(48px, 6vw, 72px);
  padding: 0;
}

.finplus-system__colors li {
  width: clamp(120px, 12vw, 160px);
  height: clamp(120px, 12vw, 160px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--project-font);
  font-weight: 600;
  font-size: clamp(12px, 0.95vw, 14px);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.finplus-system__font {
  font-family: var(--project-font);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 64px);
  margin: 0;
}

/* Gallery — plain grid, cream background to match the intro so the page
   ends on the same light note it opened its content on. */
.finplus-gallery {
  background-color: var(--finplus-cream);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  padding: 0 clamp(20px, 4vw, 58px) clamp(64px, 8vw, 110px);
}

.finplus-gallery figure {
  margin: 0;
}

.finplus-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.finplus-gallery figcaption {
  margin-top: 12px;
  color: var(--finplus-navy);
  font-family: var(--project-font);
  font-weight: 500;
  font-size: clamp(13px, 1vw, 15px);
  text-align: center;
}

/* Embed sections — the two hero buttons scroll down to these instead of
   leaving the page, so the prototype and the Figma file both stay "inside"
   the case study rather than opening a new tab. Alternates cream/white so
   the two sections still read as visually distinct from one another. */
.finplus-embed {
  background-color: #fff;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 58px);
  text-align: center;
  scroll-margin-top: var(--header-height);
}

.finplus-embed--alt {
  background-color: var(--finplus-cream);
}

.finplus-embed:last-of-type {
  padding-bottom: clamp(80px, 9vw, 130px);
}

.finplus-embed__frame {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(8, 18, 64, 0.15);
  aspect-ratio: 16 / 10;
}

.finplus-embed__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Try the prototype gets a phone-shaped frame instead of the wide canvas
   frame the Figma-file embed uses, since it's a single mobile flow rather
   than a pannable design file. */
.finplus-embed__frame--phone {
  max-width: 380px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background-color: #fff;
}

@media (max-width: 700px) {
  .finplus-problem__quotes {
    grid-template-columns: 1fr;
  }

  .finplus-embed__frame:not(.finplus-embed__frame--phone) {
    aspect-ratio: 3 / 4;
  }
}
