/* Hyperfox case study. The layout (sidebar, slides, grid) is shared: case.css and
   case.js. This file holds each slide's backdrop (.stage) and the pieces laid out
   on it: cuts from 2x exports of the Figma file, and the design's own vectors for
   the hexagon path and the charts. */

:root {
  --fox: #ff2f00; /* Fox, the brand orange */
  --obsidian: #1e1e1e;
  --stone: #b3aaa3;
  --sand: #f6f2e7;
  --pad: clamp(20px, 5vw, 64px);
}

img {
  -webkit-user-drag: none;
}

/* ── Stages ─────────────────────────────────────────────── */

.stage {
  position: relative;
  overflow: hidden;
  padding: var(--pad);
}

.stage-orange { background: var(--fox); }
.stage-obsidian { background: var(--obsidian); }
.stage-stone { background: var(--stone); }
.stage-cream { background: var(--sand); }

/* ── 1. Dashboard ───────────────────────────────────────── */

.shot > .stage.hero {
  justify-content: flex-end;
  padding-bottom: 0;
  perspective: 1400px;
}

.hero-screen {
  position: relative;
  width: 88%;
  margin: 0 auto;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(120, 20, 0, 0.35), 0 6px 18px rgba(120, 20, 0, 0.2);
  transform-origin: 50% 0;
}

.hero-screen > img:first-child {
  display: block;
  width: 100%;
}

/* ── 2. Business cards and tote, 6. key visuals ──────────────────────────── */

.shot-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.shot-wide {
  width: 100%;
  aspect-ratio: 16 / 9;
}


.shot-charts {
  width: 100%;
  aspect-ratio: 2 / 1;
}

/* ── 5. The path, 7. charts ─────────────────────────────── */

.path-visual,
.charts {
  background: var(--sand);
}


/* ── 6. Orders overview ─────────────────────────────── */

.portal {
  align-items: center;
}

.portal-screen {
  width: 88%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(40, 30, 20, 0.28), 0 6px 16px rgba(40, 30, 20, 0.14);
}

.portal-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Guidelines ─────────────────────────────────────────── */

.shot > .stage.guide {
  padding: clamp(12px, 2.2vw, 28px);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.guide-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* ── 9. Palette and type ────────────────────────────────── */

.shot-sheet {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.shot-sheet .stage {
  display: grid;
  place-items: center;
  padding: 7%;
}

.shot-sheet img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(60, 40, 20, 0.12), 0 5px 12px rgba(60, 40, 20, 0.06);
}

.shot-sheet.shot-visual {
  aspect-ratio: 16 / 11;
}

.shot-visual .stage {
  padding: 6%;
}


.shot-visual img {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22), 0 5px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 699px) {
  .hero-screen {
    width: 94%;
  }

  .portal-screen {
    width: 100%;
  }
}

/* ── 7. Fuel price and the phone ───────────────────────── */

.shot-square {
  width: 100%;
  aspect-ratio: 1;
}

.stage-portal { background: #fcf6f7; }

.price,
.phone {
  align-items: center;
}

.price-card {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 47, 0, 0.15), 0 4px 8px rgba(255, 47, 0, 0.06), 0 14px 48px rgba(120, 30, 0, 0.12);
  font-family: Inter, var(--font-sans);
}

.price-value { font-size: 34px; font-weight: 400; fill: #fff; letter-spacing: -0.6px; }
.price-unit { font-size: 18px; font-weight: 500; }
.price-sup { font-size: 12px; }
.price-label { font-size: 18px; font-weight: 600; fill: #fff; }
.price-link { font-size: 19px; font-weight: 500; fill: #fcf6f7; }
#price-date { font-size: 14px; font-weight: 600; fill: #fcf6f7; }

.phone img {
  display: block;
  height: 100%;
  max-height: 100%;
  width: auto;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(40, 30, 20, 0.3));
}

/* ── 3. Four key visuals in one slide ──────────────────── */

.shot > .stage.visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.4vw, 20px);
  padding: clamp(8px, 1.4vw, 20px);
}

.visual-cell {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.visual-cell > img,
.visual-cell > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 699px) {
  .shot > .stage.visuals { grid-template-columns: 1fr; }
}

/* ── The products, as a pricing table (a mock) ──────────────
   The case shows this as a film (assets/pricing.mp4); these rules render it, from
   archive/hyperfox-pricing/pricing.html. */

.shot > .stage.pricing {
  padding: clamp(16px, 4vw, 56px) clamp(16px, 4vw, 56px) 0;
  container-type: inline-size;
}

/* the cards touch; Plus stands a step higher and in front; all run off the bottom edge */
/* room above the cards for the blocks, in the slide's own units (cqw): Plus's block
   rises 3.5 + 10 cqw above the row */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* equal, whatever the content */
  align-items: start;
  margin-top: 11cqw;
  margin-bottom: -6cqw;
  color: var(--obsidian);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2cqw 2.6cqw 9cqw;
  background: #fcf6f7;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.plan:first-child { border-radius: 3.2cqw 0 0 0; }
.plan:last-child { border-radius: 0 3.2cqw 0 0; }

.plan-hi {
  z-index: 1;
  margin-top: -3.5cqw;
  border-radius: 3.2cqw 3.2cqw 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* the block sits on the card's top edge, about a third of it above the card */
.plan-icon {
  position: relative;
  width: 65%;
  margin-top: -10cqw;
}

.plan-icon::before {
  content: "";
  position: absolute;
  inset: 14% 10% 4%;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(3.4cqw);
  opacity: 0.38;
}

.plan-icon img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.plan-shine {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 246, 230, 0.85) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.plan h3 {
  margin-top: 1.2cqw;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 3.4cqw;
  line-height: 1;
}

/* skeleton bars in place of the details */
.sk {
  display: block;
  height: 0.9cqw;
  border-radius: 1cqw;
  background: #ece4e3;
}

.plan-tag {
  margin-top: 1cqw;
  font-family: Inter, var(--font-sans);
  font-size: 1.35cqw;
  color: #5e5e5e;
}


.plan-cta {
  display: grid;
  place-items: center;
  width: 100%;
  height: 3.4cqw;
  font-family: Inter, var(--font-sans);
  font-size: 1.3cqw;
  font-weight: 500;
  color: #5e5e5e;
  margin-top: 1.8cqw;
  border-radius: 1.2cqw;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 47, 0, 0.15), 0 4px 8px rgba(255, 47, 0, 0.06);
}

.plan-hi .plan-cta { background: var(--fox); color: #fcf6f7; }

.plan ul {
  width: 100%;
  margin: 2.2cqw 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  margin-top: 1.1cqw;
}

/* the bullets: the brand's rounded hexagon */
.plan li i {
  flex: none;
  width: 1.45cqw;
  aspect-ratio: 245 / 221;
  background: rgba(255, 47, 0, 0.45);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 245.12 221.106'%3E%3Cpath d='M166.919 0H78.2009C66.0882 0 54.9576 6.3875 48.9012 16.8696L4.54228 93.6836C-1.51409 104.166 -1.51409 117.105 4.54228 127.423L48.9012 204.237C54.9576 214.719 66.0882 221.106 78.2009 221.106H166.919C179.031 221.106 190.162 214.719 196.219 204.237L240.577 127.423C246.634 116.941 246.634 104.002 240.577 93.6836L196.219 16.8696C189.998 6.3875 178.868 0 166.919 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 245.12 221.106'%3E%3Cpath d='M166.919 0H78.2009C66.0882 0 54.9576 6.3875 48.9012 16.8696L4.54228 93.6836C-1.51409 104.166 -1.51409 117.105 4.54228 127.423L48.9012 204.237C54.9576 214.719 66.0882 221.106 78.2009 221.106H166.919C179.031 221.106 190.162 214.719 196.219 204.237L240.577 127.423C246.634 116.941 246.634 104.002 240.577 93.6836L196.219 16.8696C189.998 6.3875 178.868 0 166.919 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan-hi li i { background: var(--fox); }

.plan li b {
  display: block;
  height: 0.8cqw;
  border-radius: 1cqw;
  background: #ece4e3;
}

@media (max-width: 699px) {
  .plan { padding: 5cqw 7cqw 7cqw; }
  .plan-icon { width: 41%; }
  .plan h3 { font-size: 9cqw; margin-top: 3cqw; }
  .plans { grid-template-columns: 1fr; row-gap: 18cqw; margin-top: 16cqw; margin-bottom: -10cqw; }
  .plan, .plan:first-child, .plan:last-child, .plan-hi { border-radius: 4cqw 4cqw 0 0; margin-top: 0; padding-bottom: 7cqw; }
  .plan:not(:last-child) { border-radius: 4cqw; }
  .plan-icon { margin-top: -16cqw; }
  .plan-tag { font-size: 3.6cqw; margin-top: 2cqw; }
  .plan-cta { height: 9cqw; border-radius: 3cqw; margin-top: 4cqw; }
  .plan li { gap: 2.4cqw; margin-top: 3cqw; }
  .plan li i { width: 3.4cqw; }
  .plan li b { height: 2.2cqw; }
}

/* the pricing film: its own shape */
.shot-film {
  width: 100%;
  aspect-ratio: 1800 / 876;
  background: var(--obsidian);
}
