@font-face {
  font-family: "Baloo Bhaijaan 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/baloo-bhaijaan2-800.ttf") format("truetype");
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cairo-700.ttf") format("truetype");
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/cairo-800.ttf") format("truetype");
}

:root {
  --where-yellow: #fdc507;
  --where-yellow-soft: #ffdc63;
  --where-blue: #42a5f5;
  --where-aqua: #64ded8;
  --where-peach: #fdb27b;
  --where-cream: #fffcf8;
  --where-paper: #faf9f5;
  --where-ink: #212121;
  --where-red: #e53935;
  --where-green: #20b15a;
  --where-border: 4px solid var(--where-ink);
  --where-shadow: 8px 8px 0 var(--where-ink);
}

.where-body {
  background: var(--where-yellow-soft);
}

.where-frame {
  max-width: 1180px;
  overflow: hidden;
  border: var(--where-border);
  border-radius: 30px;
  background: var(--where-cream);
  box-shadow: 12px 12px 0 rgba(33, 33, 33, 0.92);
}

.where-frame .site-header,
.where-frame .app-footer {
  direction: ltr;
  border-color: var(--where-ink);
  background: var(--where-cream);
}

.where-frame .site-header {
  border-bottom-width: 3px;
}

.where-frame .brand-link,
.where-frame .breadcrumb-nav,
.where-frame .app-footer {
  font-family: "Nunito", sans-serif;
}

.where-frame .breadcrumb-nav a:first-child,
.where-frame .breadcrumb-nav span:last-child,
.where-frame .app-footer a {
  color: #126fbd;
}

.where-frame main {
  color: var(--where-ink);
  font-family: "Cairo", sans-serif;
}

.where-frame h1,
.where-frame h2,
.where-frame h3,
.where-frame p {
  font-family: inherit;
}

.where-hero {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 60px;
  padding: 70px 72px;
  background-color: var(--where-yellow);
  background-image: url("/assets/img/whereisthecard/playful-background.png");
  background-position: center;
  background-size: cover;
}

.where-hero-copy {
  padding: 36px 38px 40px;
  border: var(--where-border);
  border-radius: 32px;
  background: rgba(255, 252, 248, 0.96);
  box-shadow: var(--where-shadow);
}

.where-product-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  text-align: left;
}

.where-product-lockup img {
  width: 62px;
  height: 62px;
  border: 3px solid var(--where-ink);
  border-radius: 17px;
  object-fit: cover;
}

.where-product-lockup span,
.where-product-lockup strong {
  display: block;
  font-family: "Nunito", sans-serif;
}

.where-product-lockup span {
  color: #656565;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.where-product-lockup strong {
  margin-top: 2px;
  color: var(--where-ink);
  font-size: 20px;
  font-weight: 900;
}

.where-kicker,
.where-section-kicker,
.where-section-heading > p {
  color: #126fbd;
  font-size: 15px;
  font-weight: 800;
}

.where-hero h1 {
  color: var(--where-ink);
  font-family: "Baloo Bhaijaan 2", "Cairo", sans-serif;
  font-size: clamp(58px, 6vw, 82px);
  font-weight: 800;
  line-height: 0.9;
}

.where-hero h1 span {
  color: #147fd1;
}

.where-intro {
  max-width: 620px;
  margin-top: 24px;
  color: #464646;
  font-size: 18px;
  line-height: 1.9;
}

.where-intro strong {
  color: var(--where-ink);
}

.where-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.where-quick-facts li {
  padding: 7px 13px;
  border: 3px solid var(--where-ink);
  border-radius: 999px;
  background: #fff;
  color: var(--where-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.where-primary-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 0 26px;
  border: 4px solid var(--where-ink);
  border-radius: 18px;
  background: var(--where-blue);
  box-shadow: 5px 5px 0 var(--where-ink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.where-primary-link:hover,
.where-primary-link:focus-visible {
  box-shadow: 2px 2px 0 var(--where-ink);
  transform: translate(3px, 3px);
}

.where-primary-link:focus-visible,
.where-links-bar a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.where-hero-screen {
  width: min(100%, 365px);
  justify-self: center;
  margin: 0;
  padding: 12px;
  border: 5px solid var(--where-ink);
  border-radius: 44px;
  background: var(--where-cream);
  box-shadow: 12px 12px 0 var(--where-ink);
  transform: rotate(-2deg);
}

.where-hero-screen img {
  width: 100%;
  aspect-ratio: 1179 / 2556;
  border-radius: 31px;
  object-fit: cover;
}

.where-hero-screen figcaption {
  padding: 12px 4px 2px;
  color: var(--where-ink);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.where-features,
.where-screens,
.where-facts {
  padding: 72px;
}

.where-features {
  background: var(--where-cream);
}

.where-section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.where-section-heading h2,
.where-flow h2,
.where-access h2,
.where-facts h2 {
  margin-top: 7px;
  color: var(--where-ink);
  font-family: "Baloo Bhaijaan 2", "Cairo", sans-serif;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1;
}

.where-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.where-feature-grid article {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 28px;
  border: var(--where-border);
  border-radius: 26px;
  background: var(--where-yellow-soft);
  box-shadow: 6px 6px 0 var(--where-ink);
}

.where-feature-grid article.is-blue {
  background: #b9e7ff;
}

.where-feature-grid article.is-peach {
  background: #ffd0ad;
}

.where-feature-grid h3,
.where-flow-steps h3,
.where-access-list h3 {
  color: var(--where-ink);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
}

.where-feature-grid p,
.where-flow p,
.where-flow-steps p,
.where-access p,
.where-facts p {
  margin-top: 11px;
  color: #494949;
  font-size: 15px;
  line-height: 1.75;
}

.where-avatar-group,
.where-card-pair,
.where-decision-cards {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.where-avatar-group img {
  width: 82px;
  height: 82px;
  margin-inline-start: -18px;
  border: 4px solid var(--where-ink);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.where-avatar-group img:last-child {
  margin-inline-start: 0;
}

.where-card-pair img {
  width: 94px;
  border: 4px solid var(--where-ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--where-ink);
}

.where-card-pair img:first-child {
  transform: rotate(7deg) translateX(-10px);
}

.where-card-pair img:last-child {
  transform: rotate(-7deg) translateX(10px);
}

.where-decision-cards {
  gap: 12px;
}

.where-decision-cards span {
  min-width: 104px;
  padding: 14px 16px 12px;
  border: 4px solid var(--where-ink);
  border-radius: 17px;
  background: #fff;
  color: var(--where-ink);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.where-decision-cards span:last-child {
  background: var(--where-blue);
  color: #fff;
}

.where-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 50px;
  align-items: start;
  padding: 72px;
  border-block: 4px solid var(--where-ink);
  background: var(--where-aqua);
}

.where-flow-copy {
  position: sticky;
  top: 28px;
  padding: 30px;
  border: var(--where-border);
  border-radius: 26px;
  background: var(--where-cream);
  box-shadow: 7px 7px 0 var(--where-ink);
}

.where-flow-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.where-flow-steps li {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: var(--where-border);
  border-radius: 24px;
  background: var(--where-cream);
  box-shadow: 6px 6px 0 var(--where-ink);
}

.where-step-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 3px solid var(--where-ink);
  border-radius: 50%;
  background: var(--where-yellow);
  color: var(--where-ink);
  font-size: 23px;
  font-weight: 800;
}

.where-flow-steps img {
  width: 82px;
  border: 3px solid var(--where-ink);
  border-radius: 13px;
}

.where-screens {
  background: var(--where-yellow-soft);
}

.where-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: center;
}

.where-screen-grid figure {
  margin: 0;
  padding: 10px 10px 16px;
  border: var(--where-border);
  border-radius: 34px;
  background: var(--where-cream);
  box-shadow: 7px 7px 0 var(--where-ink);
}

.where-screen-grid figure:nth-child(1) {
  transform: rotate(1.5deg);
}

.where-screen-grid figure:nth-child(3) {
  transform: rotate(-1.5deg);
}

.where-screen-grid img {
  width: 100%;
  aspect-ratio: 1179 / 2556;
  border-radius: 24px;
  object-fit: cover;
  object-position: top;
}

.where-screen-grid figcaption {
  padding: 12px 4px 0;
  color: var(--where-ink);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.where-access {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 72px;
  border-block: 4px solid var(--where-ink);
  background: var(--where-peach);
}

.where-access-copy {
  padding: 32px;
  border: var(--where-border);
  border-radius: 28px;
  background: var(--where-cream);
  box-shadow: var(--where-shadow);
}

.where-access-list {
  display: grid;
  gap: 18px;
}

.where-access-list article {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: var(--where-border);
  border-radius: 24px;
  background: var(--where-cream);
  box-shadow: 6px 6px 0 var(--where-ink);
}

.where-access-list img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.where-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 48px;
  background: var(--where-cream);
}

.where-facts dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.where-facts dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border: 3px solid var(--where-ink);
  border-radius: 16px;
  background: #fff;
}

.where-facts dt {
  color: #126fbd;
  font-size: 13px;
  font-weight: 800;
}

.where-facts dd {
  margin: 0;
  color: var(--where-ink);
  font-size: 15px;
  font-weight: 800;
}

.where-links-bar {
  border-top: 4px solid var(--where-ink);
  background: var(--where-ink);
}

.where-links-bar a {
  color: #fff;
  font-family: "Nunito", sans-serif;
}

.where-links-bar img {
  border-radius: 7px;
  filter: none;
}

.where-frame .app-footer {
  border-top: 0;
}

@media (max-width: 960px) {
  .where-frame {
    width: min(100% - 24px, 820px);
    margin: 16px auto;
  }

  .where-hero,
  .where-flow,
  .where-access,
  .where-facts {
    grid-template-columns: 1fr;
  }

  .where-hero {
    gap: 50px;
    padding: 54px 44px;
  }

  .where-hero-screen {
    width: min(100%, 330px);
  }

  .where-features,
  .where-screens,
  .where-facts,
  .where-flow,
  .where-access {
    padding: 58px 44px;
  }

  .where-feature-grid {
    grid-template-columns: 1fr;
  }

  .where-feature-grid article {
    min-height: auto;
  }

  .where-flow-copy {
    position: static;
  }

  .where-screen-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    overflow-x: auto;
    padding: 4px 5px 20px;
    scroll-snap-type: inline mandatory;
  }

  .where-screen-grid figure {
    scroll-snap-align: start;
  }
}

@media (max-width: 620px) {
  .where-frame {
    width: calc(100% - 14px);
    border-radius: 22px;
    box-shadow: 6px 6px 0 rgba(33, 33, 33, 0.92);
  }

  .where-frame .site-header {
    padding: 18px;
  }

  .where-frame .breadcrumb-nav {
    gap: 8px;
    font-size: 11px;
  }

  .where-hero,
  .where-features,
  .where-screens,
  .where-facts,
  .where-flow,
  .where-access {
    padding: 38px 20px;
  }

  .where-hero {
    min-height: auto;
  }

  .where-hero-copy {
    padding: 26px 22px 30px;
    border-radius: 25px;
    box-shadow: 5px 5px 0 var(--where-ink);
  }

  .where-product-lockup img {
    width: 54px;
    height: 54px;
  }

  .where-product-lockup strong {
    font-size: 17px;
  }

  .where-hero h1 {
    font-size: clamp(49px, 16vw, 64px);
  }

  .where-intro {
    font-size: 16px;
  }

  .where-primary-link {
    width: 100%;
  }

  .where-section-heading h2,
  .where-flow h2,
  .where-access h2,
  .where-facts h2 {
    font-size: 39px;
  }

  .where-flow-steps li {
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .where-step-number {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .where-flow-steps img {
    width: 66px;
  }

  .where-flow-steps h3,
  .where-access-list h3 {
    font-size: 22px;
  }

  .where-flow-steps p,
  .where-access-list p {
    font-size: 13px;
  }

  .where-screen-grid {
    grid-template-columns: repeat(3, minmax(238px, 72vw));
    gap: 18px;
  }

  .where-access-copy {
    padding: 25px 22px;
    box-shadow: 5px 5px 0 var(--where-ink);
  }

  .where-access-list article {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 17px;
  }

  .where-access-list img {
    width: 58px;
    height: 58px;
  }

  .where-facts dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .where-links-bar {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .where-primary-link {
    transition: none;
  }
}
